Access Web.config settings in Asp.Net Core App?

前端 未结 3 1167
萌比男神i
萌比男神i 2020-12-01 07:44

I understand that asp.net core has a new configuration system that is quite flexible and that\'s great. But there are things I like about the web.config based configuration

3条回答
  •  广开言路
    2020-12-01 08:01

    I ran into this problem when I started publishing my asp.net core 1.1 application to IIS.
    There would be generated web.config file on the IIS which was overriten on publishing. To enable Windows Authentification I had to add a web.config manually to my Project. This one gets published correctly to IIS:

    
    
      
        
          
        
        
        
          
            
            
          
        
      
    
    

提交回复
热议问题