简体   繁体   English

Azure部署-如何添加程序集?

[英]Azure Deployment - How to add an assembly?

My project is working fine on localhost, but I would like to push my project on a Windows Azure Cloud Service. 我的项目在localhost上运行良好,但我想将项目推送到Windows Azure云服务上。 I did everything nice to publish the project. 我所做的一切都很好,可以发布该项目。 However I have missing assemblies for the deployment : 但是我缺少用于部署的程序集:

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. 

I checked the references and the Microsoft.Web.Infrastructure is inside of the project. 我检查了引用,并且Microsoft.Web.Infrastructure位于项目内部。

在此处输入图片说明

Could someone could help me to add this assembly to the publish package ? 有人可以帮我将这个程序集添加到发布包中吗?

Thanks 谢谢

You should set the "Copy Local" Property to "True" on Properties Window. 您应该在“属性”窗口中将“复制本地”属性设置为“真”。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Microsoft Azure进行连续部署 - Continuous deployment with Microsoft Azure 如何实现将Sitefinity代码文件增量部署到Windows Azure的不同环境? - How to achieve Incremental deployment of Sitefinity Code Files to different environments of windows azure? 如何将Assembly Manifest文件添加到使用NetBeans IDE C ++ MinGW创建的.exe文件中 - How to add Assembly Manifest file to .exe file created with NetBeans IDE C++ MinGW 如何使用 Ansible 向 Azure VM 添加自定义脚本扩展 - How to add Custom Script Extension to Azure VM using Ansible accessToken 对于从 Windows 服务器连接到 Azure DevOps 部署组无效 - A accessToken is not valid for connecting to Azure DevOps deployment group from Windows server 为什么更新停止的Azure部署会花费这么长时间? - Why does updating a stopped Azure deployment take so long? SqlServerSpatial110.dll无法在Windows Azure部署上复制 - SqlServerSpatial110.dll failed to copy on Windows Azure deployment 带有错误消息的 Azure DevOps 部署组代理安装 - Azure DevOps deployment groups agents installation with error message 如何进行专门的设置和部署 - How to make Cutsomized Setup and Deployment 如何在程序集中的目录中打开文件 - how to open a file in a directory in assembly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM