Transforming files with msdeploy

前端 未结 4 1184
不思量自难忘°
不思量自难忘° 2020-12-15 14:06

Can I use the config transforms mechanism of MSDeploy to transform other files?

4条回答
  •  时光说笑
    2020-12-15 14:49

    (another approach)

    The msdeploy packaging is jsut invoked during an MSbuild run for your project.

    TransformXml is an included task of a .csproj or .vsproj build.

    Just modify your build process to invoke that task on whatever file you need.

    For example, what we do is write a custom target

    
    
        
        
    

    Then modify your .csproj to run this BEFORE the Publish task is invoked.

    
    

提交回复
热议问题