How do I define a List environment variable, so I can read it in C#
I have an appsettings.json
file with a variable which is a list of strings: [“foo”, “bar”].
I’m trying to overwrite this variable with an environment variable. When I do, I still receive the value from appsettings when I retrieve the variable as a list. If I retrieve it as a string, I receive the environment variable value.
How do I define a List environment variable, so I can read it in C#
I have an appsettings.json
file with a variable which is a list of strings: [“foo”, “bar”].
I’m trying to overwrite this variable with an environment variable. When I do, I still receive the value from appsettings when I retrieve the variable as a list. If I retrieve it as a string, I receive the environment variable value.
What values can Environment.SystemDirectory return?
According to this, the signature of the Environment.SystemDirectory is: