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

 只属于我一个人的秘密 发布于 2023-02-12 20:04

我的项目在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是在项目内部.

在此输入图像描述

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

谢谢

1 个回答
  • 您应该在"属性"窗口中将"复制本地"属性设置为"True".

    在此输入图像描述

    2023-02-12 20:07 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有