DEV Community

Discussion on: Individual developer settings in ASP.NET Core

Collapse
 
dr_dimaka profile image
Dmitry Pavlov

To run Local from the Visual Studio you can easily set the environment name in launchSettings.json this way:

"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Local"
}

Thread Thread
 
thomasardal profile image
Thomas Ardal

Ah ok, I think I understand better then. I thought that the Local part was some kind of built-in feature in ASP.NET Core. With your solution, I could create an appsettings.development.json file too and ignore that from Git, right? Would give the same end result, since Development is already set up as an environment variable.