【发布时间】:2021-10-26 07:42:32
【问题描述】:
我有一个 Web API 项目 (MapBackend)。我想在 MapBackend-applicationUrl (https://localhost:5001) 启动项目,但它启动 ssl 端口 (https://localhost:44365/)。所以这个项目行不通。我该如何解决这个问题?
这是我的 launchSettings.json 文件:
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:43928",
"sslPort": 44365
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"MapBackEnd": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
【问题讨论】:
标签: asp.net asp.net-core