Config Transformation on NLog does not work

前端 未结 10 1719
悲&欢浪女
悲&欢浪女 2021-02-05 09:15

I have a web project (ASP.NET MVC 4 project) that has a number of configurations stored in Web.Config and in NLog.config files.

I have

10条回答
  •  孤街浪徒
    2021-02-05 10:01

    Update - Adding a "key" attribute to the config and transformation files along with "Transform" and "Locator" attributes to the lines that change in the transformation file works in a standalone NLog.config file as follows:

    
        
          
          
        
        
            
        
    
    

    Transform file:

    
    
      
        
      
    
    

提交回复
热议问题