I am using ASP.NET Core RC2 and when I run dotnet run
my application always runs in "Production". I am not able to change it to "Development".
I have the following launchSettings.json
file:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26088/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"MVCCoreRc2App": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
I am not sure why dotnet
is running the application in "Production" when I am setting "ASPNETCORE_ENVIRONMENT": "Development"
.
This was working in ASP.NET Core RC1. What am I missing?