如何将.Net Core 1.0项目设置为在调试时使用Local IIS而不是IIS Express?
我try 过以各种方式修改launchSettings.json文件.例如,将所有出现的IIS Express替换为Local IIS,并更新applicationUrl和launchUrl以使用我的自定义本地主机http://sample.local(我已经更新了主机文件并配置了IIS管理器),但并不满意.
默认设置为Properties/launchSettings.json个文件:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:38601/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"SampleApp": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}