How do I do Web.config Transformations with Visual Studio Website Projects?

后端 未结 6 994
旧时难觅i
旧时难觅i 2020-12-05 00:51

It doesn\'t seem to be possible to change the Build Configuration of Visual Studio 2010 Website Projects (as opposed to Visual Studio Web Applications), and changing the Bui

6条回答
  •  误落风尘
    2020-12-05 01:17

    If you would prefer not to need a Web.Template.config, I used this:

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

    Adapted from an answer here.

提交回复
热议问题