Checking and Setting Environment Variables for the Session
- This is used on Visual Studio when running Entity Framework core migrations in the developer console
Get-ChildItem Env:
$env:ASPNETCORE_ENVIRONMENT = "Local"
// $env:MY_VARIABLE = "MyValue"Nov 19, 20251 min read
Get-ChildItem Env:
$env:ASPNETCORE_ENVIRONMENT = "Local"
// $env:MY_VARIABLE = "MyValue"