Config Transformation on NLog does not work

前端 未结 10 1717
悲&欢浪女
悲&欢浪女 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 09:57

    Working example when nlog is in web.config - making maximal use of variables to minimise required transformations

    
    
      
        
        
        
    
        
          
            
          
    
        
    
        
          
        
      
    
    

    Transform file:

    
    
      
        
      
    
    

    The trick is to namespace all the nlog elements - nlog, variable

提交回复
热议问题