© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
74 replies
PatrickG

need some help understanding configuration comming from "Environment Variables"

so I read some docs that says I should store secrts for development using the Secrets.json service.
This works , it fetches the secret from there.
But the it says that if I also have an environment variable with the same name itll fetch it from there instead and thats how I should replace secrets in production.

But with this code I cannot get a environment variable, it just returns null even though i've created the environment variable in windows
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Help understanding some code
C#CC# / help
2y ago
❔ Environment variables vs configuration files for storing secrets
C#CC# / help
3y ago
❔ Need Help Understanding Casting
C#CC# / help
3y ago
Get Environment Variables...
C#CC# / help
4y ago