发布配置文件未部署在TFS Build上 [英] Publish Profile not deploying on TFS Build

查看:163
本文介绍了发布配置文件未部署在TFS Build上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2012中有一个.net4解决方案,该解决方案的网站具有自己的publishprofile.

I have a .net4 solution in VS2012 that has a website with its own publishprofile.

从VS内部执行时,配置文件可以通过webdeploy成功发布,但是当使用TFS2012构建时,它似乎会被忽略.

The profile successfully publishes via webdeploy when executed from within VS, but when using a TFS2012 build it seems to get ignored.

我将这些MSBuild参数传递给内部版本:

I pass these MSBuild arguments into the build:

/p:DeployOnBuild=true /p:AllowUntrustedCertificate=true /p:PublishProfile=CI /p:Configuration=CI /p:UserName=XXX /p:Password=XXXXXX

我认为DeployOnBuild = true将迫使MSBuild在解决方案中执行同名的发布配置文件.

I thought DeployOnBuild=true would force MSBuild to execute the publish profiles of the same name within the solution.

不是这样吗?

推荐答案

在我的情况下,我将此参数用于msbuild.

In my case I use this arguments for the msbuild.

/p:OutDir = $(build.stagingDirectory)/p:DeployOnBuild = true /p:WebPublishMethod =包装/p:PackageAsSingleFile = true /p:SkipInvalidConfigurations = true

/p:OutDir=$(build.stagingDirectory) /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true

在这种情况下,它将使用其具有网站的项目生成一个Package文件夹.

In this case, it generates a Package folder with the project that it has the website.

这篇关于发布配置文件未部署在TFS Build上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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