Default debug launch URL for ASP.NET Core

When using the ASP.NET Core Web API template, the default debug base URL is somehow set to api/values

. Where is this default set and how can I change it?

+7


source to share


1 answer


There was very little documentation that I could find regarding where this start URL was declared. This post on MSDN has a brief mention of this. I eventually came across it in a file launchSettings.json

under the Properties

project node like below:

enter image description here

Here are the contents of this file:



{
  "profiles": {
    "IIS Express": {
      "commandName" : "IISExpress",
      "launchBrowser": true,
      "launchUrl": "api/values",
      "environmentVariables" : {
        "ASPNET_ENV": "Development"
      }
    }
  }
}

      

You can change launchURL

to your desired default route.

+12


source







All Articles