TFS 2010构建定义:似乎忽略了MSBuild参数 [英] TFS 2010 Build Definition: MSBuild Arguments seems to be ignored

查看:112
本文介绍了TFS 2010构建定义:似乎忽略了MSBuild参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在TFS 2010中构建后创建一个软件包。

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

已编译解决方案,并且在obj文件夹中有一个软件包。

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

但是,当我指定

 /p:DeployOnBuild=true;DeployTarget=Package 

作为构建定义中的 MSBuild参数并排队一个新的构建,我的放置文件夹中没有包。此外,构建状态为成功,就好像一切都很好。

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.

推荐答案

最终,我设法使其正常运行。
我需要在生成服务器上安装Visual Studio 2010,以使MSBuild可以使用这些参数。

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.

这篇关于TFS 2010构建定义:似乎忽略了MSBuild参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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