使用语言资源编译错误将MVC应用程序部署到Azure

时间:2014-11-14 19:36:10

标签: asp.net asp.net-mvc azure

我正在将MVC 5网站部署到Windows Azure网站。在本地运行,该网站按预期工作。当我发布到网站时,我收到以下错误。

  Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

    Compiler Error Message: CS0103: The name 'Resources' does not exist in the current context
 

1 个答案:

答案 0 :(得分:0)

在对其他网站进行一些搜索之后,一个适用于其他网站的解决方案是转到资源文件'属性并将构建操作设置为'内容"。

这对我不起作用,但将其设置为“嵌入式资源”。那样。