找不到MSBuild目标软件包 [英] MSBuild target package not found

查看:133
本文介绍了找不到MSBuild目标软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打包我的VS2010 Web应用程序项目,准备使用msdeploy进行部署.在开发机上,我可以使用:

I want to package my VS2010 web application project ready for deployment with msdeploy. On development machine I can do this using:

MSBuild.exe "C:\path\to\WebApp.csproj" /target:package

但是在我的构建服务器上,出现此错误:

But on my build server I get this error:

错误MSB4057:项目中不存在目标包".

error MSB4057: The target "package" does not exist in the project.

构建服务器上缺少什么?

What am I missing on the build server?

推荐答案

通过在构建服务器上执行以下步骤,我无需安装VS2010即可完成此工作:

I just got this working without installing VS2010 by following these steps on the build server:

  1. 如果未安装.NET Framework 4,请安装它.
  2. http://www.iis.net/download/webdeploy
  3. 从开发人员机器上的C:\ Program Files \ MSBuild \ Microsoft \ VisualStudio \ v10.0文件夹中,将"Web"和"Web应用程序"文件夹复制到构建服务器上的等效目录中.

这似乎对我有用

这篇关于找不到MSBuild目标软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆