TFS 2012 not copying transformed Web.Config to _PublishedWebsite

妖精的绣舞 提交于 2019-12-11 01:49:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!