© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
8 replies
The Don

Environment Variables/Persistent Values in OpenSilver

Dear Community -

I am trying to find a way to store and recall user credentials (such as an API key from a back-end or other user-critical data) when using an OpenSilver project, and haven't had much luck.

I was wondering if the community could offer an insight on this.

What I've tried (without success) :
- Environment Variables (Using System.Environment).
- User Secrets.
- Storing a file in the file system.

Thank you, kindly!
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

Similar Threads

❔ Environment variables in tests
C#CC# / help
3y ago
Get Environment Variables...
C#CC# / help
4y ago
persistent changes to variables across files
C#CC# / help
4y ago
❔ Can't change environment variables in Rider
C#CC# / help
3y ago