Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 640 Bytes

Stores_EnvironmentVariables.md

File metadata and controls

16 lines (11 loc) · 640 Bytes

Environment Variables Store

To configure the store:

protected override void OnConfigure(IConfigConfiguration configuration)
{
    configuration.UseEnvironmentVariables();
}

This store works with system environment variables, the ones you get on Windows cmd.exe by typing set or in PowerShell by typing Get-ChildItem Env: or on Unix base systems env.

The store supports reading and writing environment variables.

Note: Some systems like Visual Studio Team System Build replace dots (.) with underscores (_) when defining a variable. To overcome this the store will try to read the variable in both variants.