ASPNETCORE_URLS environment variable is ignored by "dotnet run"
dotnet new web
set ASPNETCORE_URLS=http://127.0.0.1:0
dotnet run
(note ASPNETCORE_URLS is ignored)
> dotnet run
Using launch settings from D:Tempfoo2PropertieslaunchSettings.json...
Hosting environment: Development
Content root path: D:Tempfoo2
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
dotnet run --no-launch-profile
(note ASPNETCORE_URLS is used)
> dotnet run --no-launch-profile
Hosting environment: Production
Content root path: D:Tempfoo2
Now listening on: http://127.0.0.1:50897
Application started. Press Ctrl+C to shut down.