asp.net-core

Remove weatherforecast default route


I have started a default .Net Core WebAPI project using the 3.0 preview 8. I have removed the default weatherforecast controller from the project, and added my own controller. However, starting the project always defaults to the route https://localhost:44380/weatherforecast. I can not find the setting to change this. How do I set the default controller in .Net Core 3?


Solution

  • In Solution Explorer, click the "Show all Files" button.

    It will show the Properties pseudo-folder. In launchSetting.json the startup url is configured.