问题
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