transform web.config using msbuild command line
Asked Answered
O

1

1

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?

Overcareful answered 6/11, 2018 at 18:26 Comment(0)
O
5

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

Overcareful answered 6/11, 2018 at 19:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.