TFS Build not transforming web.config as expected

后端 未结 5 1168
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 13:42

The goal is to have TFS build and deploy 2+ different configurations, and have the web.config transform files include the intended content in their output. This in an ASP.NE

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 14:05

    Previously I had been doing something similar to the other answers. However, I just found what seems to be a better solution to this problem. Just add "/p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false" to your MSBuild arguments. I just tried this out on one of my TFS builds and it works just fine.

    I found this great tip here: http://www.andygeldman.com/index.php/2011/10/web-and-app-config-transformations-with-tfs-build.

提交回复
热议问题