问题
I have a web project with a config transform.
On my local machine, when the project is built, the transform works fine.
However, my project is pushed to TFS and built there, the config file is transformed in the main drop folder; However, the version in _PublishedWebsites is the original, un-transformed version.
This is causing problems when using Octopack, since it packs everything in the _PublishedWebsites\ folder to deploy, thus, I'm getting an un-transformed file in my deployment
Is there a way to make TFS transform the config file before pushing to _PublishedWebsites
Edit
We're using TFS 2012
回答1:
Based on info I found on these articles:
- http://www.andygeldman.com/index.php/2011/10/web-and-app-config-transformations-with-tfs-build
- http://www.vosseburcht.com/?p=79
The solution was to add
/p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false
To my build arguments.
Now, the transformed Web.Config file is copied to _PublishedWebsites
来源:https://stackoverflow.com/questions/28884342/tfs-2012-not-copying-transformed-web-config-to-publishedwebsite