【问题标题】:Azure Deployment - How to add an assembly?Azure 部署 - 如何添加程序集?
【发布时间】:2013-12-04 15:12:03
【问题描述】:

我的项目在 localhost 上运行良好,但我想将我的项目推送到 Windows Azure 云服务上。 我做了一切好事来发布这个项目。但是我缺少用于部署的程序集:

Warning 1   The web project 'MyProject' is dependent on the following 
MVC assembly: C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\
v2.0\Assemblies\Microsoft.Web.Infrastructure.dll. MVC assemblies must be added to 
the package or installed on the virtual machine for your web role. For more details 
about this, see the following help page: http://go.microsoft.com/fwlink/?LinkId=218227. 

我检查了参考资料,Microsoft.Web.Infrastructure 位于项目内部。

有人可以帮我将此程序集添加到发布包吗?

谢谢

【问题讨论】:

  • 您是否将“复制本地”属性设置为 True?
  • @ThiagoCustodio 因为这是最有可能的答案,所以应该这样发布。

标签: windows azure deployment web-deployment azure-web-roles


【解决方案1】:

您应该在属性窗口中将“复制本地”属性设置为“真”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-25
    • 2016-08-09
    • 1970-01-01
    相关资源
    最近更新 更多