diff --git a/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs b/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs index 2199658c7e..8225e19ebd 100644 --- a/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs +++ b/tests/Tgstation.Server.Tests/Live/TestLiveServer.cs @@ -181,6 +181,10 @@ namespace Tgstation.Server.Tests.Live [ClassInitialize] public static async Task Initialize(TestContext _) { + // Clear problematic environment variables + Environment.SetEnvironmentVariable("MSBuildExtensionsPath", null); + Environment.SetEnvironmentVariable("MSBuildSDKsPath", null); + if (TestingUtils.RunningInGitHubActions || String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("TGS_TEST_GITHUB_TOKEN"))) await TestingGitHubService.InitializeAndInject(default);