How To Set Startup Route In ASP.NET Core

…衆ロ難τιáo~ 提交于 2019-12-01 17:06:37

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

It's in Properties/launchSettings.json

the field to change is:

profiles.IISExpress.launchUrl
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!