It's a .NET Core 2.2 app. I want to set some Environment Variables in Visual Studio 2017 and then read those variables in .NET code.

I tried:

[![enter image description here](https://i.stack.imgur.com/r9FKi.png)](https://i.stack.imgur.com/r9FKi.png)

But, then when I try reading this from code

`Environment.GetEnvironmentVariable("TEST_ENVIRONMENT")`

the value is always NULL, regardless of using Process, User or Machine target.

Is there a way to read the content of the Environment Variables dialog from .NET Core code?

Thanks.