Ask coding questions

← Back to all posts
How to reference the .env in C#
orcazate (0)

Hi all, how do I reference the .env file in C#

Comments
hotnewtop
InvisibleOne (2687)

I believe it is like this:

value = Environment.GetEnvironmentVariable("TOKEN")