TFS 2010 Build Definition: MSBuild Arguments seems to be ignored

ぐ巨炮叔叔 提交于 2020-01-02 12:01:15

问题


I am trying to create a package after a build in TFS 2010.

When I launch the following command on my computer:

 MSBuild.exe Fenicorp.Front.Web.FunnyApplication.sln 
 /p:DeployOnBuild=true;DeployTarget=Package

the solution is compiled and there is a package inside the obj folder.

However, when I specify

 /p:DeployOnBuild=true;DeployTarget=Package 

as MSBuild Arguments in a Build Definition and queue a new build, there is no package in my drop folder. Moreover the build status is Successfull, as if everything is fine.


回答1:


Eventually I managed to make it work. I needed to install Visual Studio 2010 on the build server in order to have MSBuild to work with these arguments.



来源:https://stackoverflow.com/questions/6535479/tfs-2010-build-definition-msbuild-arguments-seems-to-be-ignored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!