如何配置TFS生成代理建发布个人资料? [英] how to configure tfs build agent to build publishing profile?
问题描述
我有一个TFS建立srver与VS2010。
我使用这个版本的模板
在我自己的机器我已经创造了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
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屋!