How To Set Startup Route In ASP.NET Core

前端 未结 2 1387
臣服心动
臣服心动 2020-12-19 04:50

My ASP.NET core app startup route is set as:

/api/values

I want to change this startup route to be:

/

Loo

相关标签:
2条回答
  • 2020-12-19 05:16

    Adam Weitzman is right, but you can also switch it using Visual Studio's GUI.

    1. Right-click on project in Solution Explorer
    2. Click Properties
    3. Go to Debug tab
    4. Check the Launch URL checkbox and set the URL you want. Leave the text box empty to launch the root URL

    0 讨论(0)
  • 2020-12-19 05:20

    It's in Properties/launchSettings.json

    the field to change is:

    profiles.IISExpress.launchUrl
    
    0 讨论(0)
提交回复
热议问题