Skip to content

Instantly share code, notes, and snippets.

@PaulFarry
Created June 22, 2020 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulFarry/d86108c45ad729276106872a867dc6c9 to your computer and use it in GitHub Desktop.
Save PaulFarry/d86108c45ad729276106872a867dc6c9 to your computer and use it in GitHub Desktop.
Dump Environment Variables
var environmentVariables = Environment.GetEnvironmentVariables();
foreach (DictionaryEntry variable in environmentVariables)
{
log.LogInformation("Variable {key} Value {value}", variable.Key, variable.Value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment