【问题标题】:Resource file is not included when packaging and publishing web role on windows azure在 windows azure 上打包和发布 web 角色时不包含资源文件
【发布时间】:2012-11-08 01:51:23
【问题描述】:

我想在 Windows Azure 上部署一个 Web 角色。该项目包含一个很大的资源文件(实际上是一个扩展名为.dct的字典文件)。

用vs2010打包后,查看.cspkg文件,approot子目录下没有.dct文件。可能是什么问题以及如何解决?

谢谢和最好的问候!

【问题讨论】:

    标签: asp.net asp.net-mvc visual-studio-2010 azure azure-storage


    【解决方案1】:

    您需要在文件属性中将其设置为复制本地。看这个截图:

    编辑添加:根据@Summer_More_More_Tea,它不是复制本地属性,而是设置Build Action to 'Content',它指定文件未编译但包含在输出中。

    【讨论】:

    • 你有我的意思。我的IDE是VS2010,没有找到名为Copy Local的属性。相反,当我将 Build AcionNone 更改为 Content 时,会包含该文件。我写下此评论以供其他人参考。非常感谢:)!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-23
    • 1970-01-01
    • 1970-01-01
    • 2011-06-04
    • 1970-01-01
    • 2015-01-29
    • 1970-01-01
    相关资源
    最近更新 更多