I am trying to setup production deployment with Team Services. I need to replace Dev configuration with Prod values. I want to apply Web.config XML transformation to achieve this. There is no documentation, only this little info bubble:
So I created Web.<EnvironmentName - Matches TS env. name>.config
Web.<EnvironmentName - Matches TS env. name>.config
.
Guess what? This transformation doesn't work. Release logs thought say: XML Transformations applied successfully
. Web.Release.config transformation
- always work, regardless if XML transformation checkbox is checked or not. So, what am I doing wrong?
You need to make sure that the "Web.environment.config" file is placed in the same path with "web.config" file. And then the task will apply the transformation like below:
Another thing is that, the "XML transformation" option is used to transform the original web.config file in your project. If you have both "Web.release.config" file and "Web.environment.config" file, it will apply the transformation with "Web.release.config" first, and then throw an error when apply the transformation with "Web.environment.config" file since the web.config is already been transformed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.