From launch.json, what is the correct way to launch an ASP.NET Core on a specific port? For instance, when I run my .NET Core app, VS Code, hosts it on localhost:5000, but I instead want to host it on localhost:5050.
Thanks in advance.
From launch.json, what is the correct way to launch an ASP.NET Core on a specific port? For instance, when I run my .NET Core app, VS Code, hosts it on localhost:5000, but I instead want to host it on localhost:5050.
Thanks in advance.
You can config it via environment variable
ASPNETCORE_URLS
macOS:
windows:
or add this to launch.json
If you don't want to specify the hostname, you can use * instead