Set TargetProfile for an Azure project
Have you tried setting the target profile at command line?
/p:TargetProfile=MyProfile
Given an Azure service configuration file named "ServiceConfiguration.Production.cscfg":
- In your TeamCity project build configuration, go to Build Parameters (step 7)
- Add a system property with the name "system.TargetProfile" and a value of "Production"
This pattern applies for any named configuration in the format ServiceConfiguration.[your profile].cscfg.
To work around this problem I have created ServiceConfiguration.Cloud.cscfg
for each Azure project using the .cscfg
that was being set in the definition.