TFS Build not transforming web.config as expected

后端 未结 5 1159
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 14:03

    Here's what I've been using. The current TransformXml task has a bug where it leaves files open. Read more here.

    You can call this task and deploy for each configuration you're working with.

    
    
        
            <_tempSourceFile>$([System.IO.Path]::GetTempFileName())
            <_tempTransformFile>$([System.IO.Path]::GetTempFileName())
        
    
        
        
    
        
    
        
    
    

提交回复
热议问题