SlowCheetah not transforming web.config on build

后端 未结 3 1150
北荒
北荒 2020-12-14 23:54

I installed the SlowCheetah package via nuget and added transform files for my web.config based on Build config. However, on building, the web.config does not get transform

3条回答
  •  有刺的猬
    2020-12-15 00:51

    To elaborate on Philipp's answer I have found a possible simpler solution: No need for a Web.Base.Config and no problems with overwriting your web.config which causes problems in Source Control.

    BeforeBuild: You make the destination your TargetDir en TargetFileName.

    AfterBuild: You copy this to your published websites after the build is done.

    
    
    
    
        
        
    
    

提交回复
热议问题