79360744

Date: 2025-01-16 07:58:59
Score: 1
Natty:
Report link

If you haven’t set

"ASPNETCORE_URLS": "https://localhost:5111/;http://localhost:5222/"

in launchSettings.json, Visual Studio will use the default listening ports. This is expected behavior. You can simply configure it directly in launchSettings.json and the warn wil be gone.

Additionally, from what I test, even if you don’t configure it, the settings in UseKestrel() will override the default URLs. It shouldn’t affect usage.

or you can set the URLs using other methods mentioned in this article.

5 ways to set the URLs for an ASP.NET Core app

Reasons:
  • Blacklisted phrase (1): this article
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zhenning Zhang