We have a d开发者_运维问答evelopmentprocess where the developers modifies the web.config to match their personal setup. For deploment we have other web.config-files with suffixes, eg web.config.test.
Is there a way to tell Team City to use the .test version of web.config instead of the default one?
Thanks in advance Roland
Add a first step in your build (if you use TeamCity 6.0) which would copy web.config.test to web.config.
You should use a tool like Slow Cheetah to aid you in XML-transformation of all your config files (if you have more than one) - then create the necessary build configs in Visual Studio (instead of just Release and Debug, add for example Release.QA, Release.Production or others). You then give Team City the Build configuration name as input for whatever build you want to do. Same goes for publishing from Team City.
精彩评论