Skip to content

Commit 6745ca5

Browse files
akoeplingerhoyosjs
authored andcommitted
Clear MSBuildExtensionsPath as well when building/publishing test apps
Otherwise this will point to the path in the executing host sdk which causes issues when running x86 tests.
1 parent 74772be commit 6745ca5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Microsoft.Diagnostics.TestHelpers/DotNetBuildDebuggeeTestStep.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ protected async Task Restore(string extraArgs, ITestOutputHelper output)
200200
.WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "true")
201201
.WithEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", Path.GetDirectoryName(DotNetToolPath))
202202
.WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(DotNetToolPath))
203+
.RemoveEnvironmentVariable("MSBuildExtensionsPath")
203204
.RemoveEnvironmentVariable("MSBuildSDKsPath")
204205
.WithWorkingDirectory(DebuggeeSolutionDirPath)
205206
.WithLog(output)
@@ -247,6 +248,7 @@ protected async Task Build(string dotnetArgs, ITestOutputHelper output)
247248
.WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "true")
248249
.WithEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", Path.GetDirectoryName(DotNetToolPath))
249250
.WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(DotNetToolPath))
251+
.RemoveEnvironmentVariable("MSBuildExtensionsPath")
250252
.RemoveEnvironmentVariable("MSBuildSDKsPath")
251253
.WithWorkingDirectory(DebuggeeProjectDirPath)
252254
.WithLog(output)

0 commit comments

Comments
 (0)