dotnet Core:升级到VS2017后调试无法打开浏览器

时间:2017-03-21 15:46:45

标签: c# .net-core iis-express

我的launchSettings.json是(将launchUrl更改为applicationUrl后):

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:5000/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:5050/"
    },
    "Project Development": {
      "commandName": "Project",
      "launchBrowser": true,
      "applicationUrl": "http://localhost:5050/"
    }
  }
}

以前两个配置文件都已打开http://localhost:5050/。现在第二个配置文件刚启动服务器,并首先显示“项目不知道如何运行配置文件IIS Express”错误。

0 个答案:

没有答案