TFS 2012 not copying transformed Web.Config to _Pu

2019-07-20 19:41发布

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条回答
趁早两清
2楼-- · 2019-07-20 20:12

Based on info I found on these articles:

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

查看更多
登录 后发表回答