VS2017 Run组合中的IISExpress或MyAPI有什么区别?

时间:2018-05-25 18:15:00

标签: visual-studio iis-express identityserver4

我正在使用IdentityServer4 Sample应用程序 我在Run组合中看到了2个选项 当我选择并运行时,它们似乎都具有相同的效果。 有什么区别?

enter image description here

这是launchSettings.json

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

1 个答案:

答案 0 :(得分:3)

这些选项只是映射到相应的"个人资料"在launchSettings.json

" IIS Express"使用IIS Express作为反向代理在Kestrel上运行您的Web应用程序,而后者直接在Kestrel上运行您的Web应用程序。

更多细节可以在

中找到

https://blog.lextudio.com/what-should-you-check-when-visual-studio-cannot-debug-asp-net-core-projects-4b5db8c5e129