如何在调试时设置.Net Core 1.0项目以使用本地IIS而不是IIS Express?
我试过以各种方式修改launchSettings.json文件.例如,替换所有出现的IIS表达与本地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"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)