错误:两个目录中都存在该类型

编程入门 行业动态 更新时间:2024-10-28 20:27:58
本文介绍了错误:两个目录中都存在该类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在MVC2项目中,我将文件从App_code移至Content文件夹并进行了编译.然后将其再次移回App_Code,然后将其生成操作"更改为编译".现在,我收到此错误,并且我不知道如何解决此错误,以使我的程序再次运行:

In a MVC2 project I moved a file from App_code to Content folder and compiled it. Then move it back again to App_Code and then changed its Build Action to "Compile". Now I get this error and I don't know how to fix this to make my program work again:

CS0433:类型"Helper"存在于 两个都 'c:\ Users ... \ AppData \ Local \ Temp \ Temporary ASP.NET Files \ root \ b00d4b7d \ b2553f9c \ App_Code.zowyklar.dll' 和 'c:\ Users ... \ AppData \ Local \ Temp \ Temporary ASP.NET 文件\ root \ b00d4b7d \ b2553f9c \ assembly \ dl3 \ 5c6d3537 \ 19f85663_cde9cb01 \ MyProject.DLL'

CS0433: The type 'Helper' exists in both 'c:\Users...\AppData\Local\Temp\Temporary ASP.NET Files\root\b00d4b7d\b2553f9c\App_Code.zowyklar.dll' and 'c:\Users...\AppData\Local\Temp\Temporary ASP.NET Files\root\b00d4b7d\b2553f9c\assembly\dl3\5c6d3537\19f85663_cde9cb01\MyProject.DLL'

清洁和重建不能解决问题.

Cleaning and Rebuilding doesn't solve the problem.

推荐答案

尝试清洁解决方案,然后尝试重建.创建新的dll后,Visual Studio可能仍会引用旧的dll.

Try cleaning your solution and then try to rebuild. Visual Studio probably still has reference to the old dll after it created the new dll.

更多推荐

错误:两个目录中都存在该类型

本文发布于:2023-11-04 10:01:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557622.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中都   错误   两个   类型   目录

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!