Everything I've read on the subject seems to be outdated and I can't find an answer to this seemingly common task.
I've been able to get Bamboo to do an MSBuild using a publish profile with:
/p:DeployOnBuild=true
/p:PublishProfile=MY_PROFILE
/p:Configuration=MY_CONFIG
/p:VisualStudioVersion=12.0
/p:AspnetMergePath="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools"
However, that would only transform the Web.config
for one environment. I want to do one build, and then be able to deploy (using bamboo's deployments - which will probably run a msdeploy task?) to multiple environments as they pass each stage; QA -> Staging -> Production
.
Is there a way to do a simple build, then do the transformations during the deployment stage?
I'm currently using Bamboo, MSBuild 14. .NET 4.5.2, and VisualStudio 2017 (v12.0).