appcmd 使用技巧
1、设置应用程序池环境变量更新运行环境
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='applicationPoolName'].environmentVariables.[name='ASPNETCORE_ENVIRONMENT',value='Development']" /commit:apphost
1、设置应用程序池环境变量更新运行环境
.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='applicationPoolName'].environmentVariables.[name='ASPNETCORE_ENVIRONMENT',value='Development']" /commit:apphost