在MVC2项目中,我将文件从App_code移动到Content文件夹并对其进行编译。 然后将其移回App_Code,然后将其Build Action更改为“Compile”。 现在我得到这个错误,我不知道如何解决这个问题,使我的程序再次工作:
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 Files \ root \ b00d4b7d \ b2553f9c \ assembly \ dl3 \ 5c6d3537 \ 19f85663_cde9cb01 \ MyProject.DLL'
清洁和重建不能解决问题。
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: 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.
更多推荐
发布评论