未找到 MSBuild 目标包 [英] MSBuild target package not found
本文介绍了未找到 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 oWebApp.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:
- 如果未安装 .NET Framework 4,请安装它
- 从 http://www.iis.net/download/webdeploy
- 从开发计算机上的 C:Program FilesMSBuildMicrosoftVisualStudiov10.0 文件夹中,将Web"和Web Applications"文件夹复制到构建服务器上的等效目录.
这似乎对我有用
这篇关于未找到 MSBuild 目标包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文