How do I specify which .cscfg file should be used in an Azure deployment triggered by an automated build in Visual Studio Team Services?
Here's my current situation:
.cscfg
files - one for my Azure staging environment (ServiceConfiguration.CloudTest.cscfg
), and one for my Azure production environment (ServiceConfiguration.Cloud.cscfg
).GitContinuousDeploymentTemplate.12.xaml
That deploys to my integration test environment, but apparently applies the ServiceConfiguration.Cloud.cscfg
file. Makes sense, I suppose, since that's the default .cscfg
file nameHowever, I can't see where in the build process I can specify a different .cscfg
file name. Is there a way I can specify which .cscfg
file to use in the deployment process?
You can set the msbuild arguments with the following property:
/p:TargetProfile=TFSBuildProfile
I am doing that in our automated builds for tfs online. Then it uses the ServiceConfiguration.TFSBuildProfile.cscfg when building.