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. :)
Entrepreneur and builder of online things. Bootstrapping elmah.io. Dad to 👦👧 Powered by ☕&🍜 Likes Star Wars, stonk trading, 3D printing, and retro games.
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. :)
Entrepreneur and builder of online things. Bootstrapping elmah.io. Dad to 👦👧 Powered by ☕&🍜 Likes Star Wars, stonk trading, 3D printing, and retro games.
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
Localenvironment name and addappSettings.Local.jsonto git.ignore.That's a good idea. Will look into that and add it to the post 👍
To run
Localfrom 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
Localpart was some kind of built-in feature in ASP.NET Core. With your solution, I could create anappsettings.development.jsonfile too and ignore that from Git, right? Would give the same end result, sinceDevelopmentis already set up as an environment variable.