Skip to content

Commit

Permalink
chore: ensure we always grab the Environment Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Dec 20, 2024
1 parent ac15f8d commit aa376e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Mobile.BuildTools.Reference/Utils/EnvironmentAnalyzer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand All @@ -25,11 +25,6 @@ public static IDictionary<string, string> GatherEnvironmentVariables(IBuildConfi

if (buildConfiguration is null)
{
foreach (var key in Environment.GetEnvironmentVariables().Keys)
{
env[key.ToString()] = Environment.GetEnvironmentVariable(key.ToString());
}

return env;
}

Expand Down Expand Up @@ -225,6 +220,10 @@ void MergeDefaultSettings(string configurationKey)
UpdateVariables(defaultSettings, ref env);
}

foreach (var key in Environment.GetEnvironmentVariables().Keys)
{
env[key.ToString()] = Environment.GetEnvironmentVariable(key.ToString());
}
return env;
}

Expand Down

0 comments on commit aa376e8

Please sign in to comment.