launchSettings.json:
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "Swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Core": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "Swagger",
"applicationUrl": "http://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
IISExpress 效果图:
Project 效果图:
使用的相同配置,这是为什么呢?