"dotnet run" always reports Production environment using Kestrel #1529

Closed
opened 2025-08-09 17:20:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @antmdvs on 7/7/2016

Repro steps:

  1. yo up a new React+Redux app
  2. dotnet run -c Debug (or --configuration Debug)

Expected:

Project rrcore1 (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Hosting environment: Development
Content root path: C:\Git\rrcore1
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

Actual:

Project rrcore1 (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Hosting environment: Production
Content root path: C:\Git\rrcore1
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

*Originally created by @antmdvs on 7/7/2016* Repro steps: 1. yo up a new React+Redux app 2. dotnet run -c Debug (or --configuration Debug) Expected: > Project rrcore1 (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation. > Hosting environment: **Development** > Content root path: C:\Git\rrcore1 > Now listening on: http://localhost:5000 > Application started. Press Ctrl+C to shut down. Actual: > Project rrcore1 (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation. > Hosting environment: **Production** > Content root path: C:\Git\rrcore1 > Now listening on: http://localhost:5000 > Application started. Press Ctrl+C to shut down.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1529
No description provided.