如何配置TFS生成代理建发布个人资料? [英] how to configure tfs build agent to build publishing profile?

查看:209
本文介绍了如何配置TFS生成代理建发布个人资料?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TFS建立srver与VS2010。

我使用这个版本的模板

http://ge.tt/3KQnZuR/v/0?c

在我自己的机器我已经创造了vs2012新的解决方案。

我创建了一个发布配置文件

我怎么能把这个 pubxml 到TFS建设者剂,而不是旧网​​络部署项目 <? / p>

解决方案

您需要告诉TFS通过传递适当的MSBuild参数来做到这一点。


  • 编辑构建配置

  • 转到进程标签

  • 的MSBuild参数部分输入以下内容:

/ P:DeployOnBuild = TRUE; PublishProfile =&LT; NameOfPublishProfile&GT;

这应指示TFS使用您的发布配置文件,当它部署您的应用程序。

I have a TFS build srver with vs2010.

I'm using this build template

http://ge.tt/3KQnZuR/v/0?c

On my own machine I have created a new solution in vs2012.

I have created a publishing profile

How can I attach this pubxml to the tfs-builder agent instead of the old web deployment project ?

解决方案

You need to tell TFS to do this by passing the appropriate MSBuild parameters.

  • Edit the build configuration
  • Goto the process tab
  • In the MSBuild Arguments section enter the following:

/p:DeployOnBuild=true;PublishProfile=<NameOfPublishProfile>

This should instruct TFS to use your publishing profile when it deploys your app.

这篇关于如何配置TFS生成代理建发布个人资料?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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