在编译BlogEngine 2.6Web应用程序项目时,我遇到了三个类似的错误:
中的VS intellisense:
the type 'RazorHelpers' exists in both 'App_Code' and BlogEngine.Web.dll编译错误:
Error 27 The type 'RazorHelpers' exists in both
'C:\inetpub\wwwroot\Nordic\Bin\BlogEngine.Web.dll' and 'App_Code'
c:\inetpub\wwwroot\Nordic\themes\RazorHost\CommentView.ascx 25 发布于 2013-01-12 14:04:13
最后,我不得不放弃2.6WAP版本,转而使用网站版本,然后迁移我所有的设计和代码定制。
发布于 2013-01-11 05:09:03
在WAP项目中,您希望确保不使用app_code目录,因为该目录中的类将被编译两次(一次在代码后面,一次在运行时),除非您将该文件排除在WAP项目之外。
您还可以尝试将app_code目录重命名为其他目录。
https://stackoverflow.com/questions/14271681
复制相似问题