问题描述
我正在尝试在TFS的Team Build上使用MSDeploy部署Web应用程序.有几个问题解决了必须在MSBuild中传递的属性才能调用MSDeploy,但是我没有找到有关可用属性的足够文档.有人有可用属性列表吗?
I'm trying to deploy a web application using MSDeploy, on Team Build in TFS. There are several questions that address the properties that have to be passed in MSBuild in order to call MSDeploy, but I haven't found sufficient documentation for what properties are available. Does someone have a list of available properties?
以下是我发现的一些问题,但我无法找到这些属性的确定列表:
Here are some questions that I've found, but I haven't been able to find a definitive list of the properties:
- Breaking MsBuild package & deploy into separate MsBuild and MsDeploy commands
- How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?
推荐答案
以下是我编制的列表供我自己参考,以及一些可以使用的合法值.请注意,这些是使用/p:<PropertyName>=<Value>
语法传递到MSBuild的.
Here's a list I've compiled for my own reference, along with some of the legal values that can be used. Note that these are passed into MSBuild using the /p:<PropertyName>=<Value>
syntax.
- DeployOnBuild
- 真
- 错误
- MsDeployPublish
- 包装
- 有效解决方案配置的名称
- 真
- 错误
- <网站名称>/<文件夹>
- 您要使用的MSDeploy安装的位置
- WMSVC (网络管理服务)
- RemoteAgent
- 真
- 错误
- 真
- 错误
这篇关于通过MSBuild进行MSDeploy的有效参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!