C#C
C#2y ago
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
Was this page helpful?