You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
I'm not able to reproduce the issue that you're mentioning. Are you running the two commands in the same console?
In my case the environment is set correctly both with run and watch run:
app victor$ dotnet run
Project app (.NETCoreApp,Version=v1.0) will be compiled because the version or bitness of the CLI changed since the last build
Compiling app for .NETCoreApp,Version=v1.0
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:04.2816666
Hosting environment: Production
^C
app victor$ export ASPNETCORE_ENVIRONMENT=Development
app victor$ dotnet run
Project app (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Hosting environment: Development
^C
VictorHu-Air:app victor$ dotnet watch run
[DotNetWatcher] info: Running dotnet with the following arguments: run
[DotNetWatcher] info: dotnet process id: 37079
Project app (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Hosting environment: Development
^C
set ASPNETCORE_ENVIRONMENT = Development
Also, are you running the exact command that you posted (with a space between the variable name and =)? On Windows, you must not add a space between tokens:
hi @victorhurdugaci i deleted the nuget cache and did a restore ...it ran fine after that but thanks for the info on tokens though i always tried both... but actually didn't know about the space problem in tokens
I am using
on command line in windows to set the environment variable then if i run
it still runs in production but if i simply do
it runs in Development mode.
The text was updated successfully, but these errors were encountered: