BlogEngine编译错误

时间:2013-01-11 04:28:22

标签: c# asp.net blogengine.net blog-engine

在尝试编译BlogEngine 2.6 Web应用程序项目时,我遇到了三个类似的错误:

在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  

2 个答案:

答案 0 :(得分:1)

在WAP项目中,您希望确保不使用app_code目录,因为该目录中的类将被编译两次(一次在代码隐藏中并在运行时再次编译),除非您从WAP项目中排除该文件。

您也可以尝试将app_code目录重命名为其他目录。

答案 1 :(得分:0)

最终,我不得不放弃2.6 WAP版本并切换到网站版本,然后迁移我的所有设计和代码自定义。

相关问题