How to add PostBuild commands for the web.config xdt transformation so that when a build is queued successfully it will transform the web.config as per the web.platform.config xdt commands.
If the build branch is e.g. OnlineManagement_Dev then the transformation should happen based on the web.debug.config when I queue this branch . If the build branch is e.g. OnlineManagement_UAT then the transformation should happen based on the web.UAT.config when I queue this branch . If the build branch is e.g. OnlineManagement_PROD then the transformation should happen based on the web.PROD.config when I queue this branch .
I tried looking at the below solution but looks like 'TransformXml' task has a file lock bug. Is there any update to the MSBuild which provides a simpler and better solution than this ?
http://www.diaryofaninja.com/blog/2011/09/14/using-custom-webconfig-transformations-in-msbuild