transform web.config using msbuild command line

1.2k Views Asked by At

Looking to setup jenkins to deploy my web app I'm using the script

msbuild WEB.csproj /p:Configuration=stage /t:Build /p:PrecompileBeforePublish=true /p:OutputPath=c:\test /p:DeployOnBuild=true /p:AutoParameterizationWebConfigConnectionStrings=False

I get the web application in _PublishedWebsite however the web.config needs to get transformed. Any tips?

1

There are 1 best solutions below

0
Josh Hoffman On

from this post TFS 2012 not copying transformed Web.Config to _PublishedWebsite

add /p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false to the command solved the issue