How to set ASP.NET 5 environment variables on production environment

前端 未结 2 1628
后悔当初
后悔当初 2021-01-12 08:07

In Visual Studio 2015 you set the following variable in project properties: ASPNET_ENV. If you set it to development then you can use:

publi         


        
2条回答
  •  北海茫月
    2021-01-12 08:33

    If you are using IIS to host your application, it's possible to set the environment variables in your web.configfile like this:

    
        
            
            
        
    
    

提交回复
热议问题