World-class .NET Contractor. Top 1% on Stack Overflow. Top 3% of Freelance Developers. 9 Microsoft MVP Awards. My clients call me the Coding Machine. :)
World-class .NET Contractor. Top 1% on Stack Overflow. Top 3% of Freelance Developers. 9 Microsoft MVP Awards. My clients call me the Coding Machine. :)
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I usually just use
Local
environment name and addappSettings.Local.json
to git.ignore.That's a good idea. Will look into that and add it to the post 👍
To run
Local
from the Visual Studio you can easily set the environment name in launchSettings.json this way:"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Local"
}
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 anappsettings.development.json
file too and ignore that from Git, right? Would give the same end result, sinceDevelopment
is already set up as an environment variable.