From 14f5d3f8c376f158d60d66a7b5158971f9e21f73 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 21 May 2021 18:56:43 +0200 Subject: [PATCH] [xharness] Disable msbuild node reuse to fix issue with msbuild processes interfering with eachother. Fixes https://github.com/xamarin/maccore/issues/2444. --- tests/xharness/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/xharness/Program.cs b/tests/xharness/Program.cs index 294a11d69874..9666cd5ba247 100644 --- a/tests/xharness/Program.cs +++ b/tests/xharness/Program.cs @@ -127,6 +127,10 @@ public static int Main (string [] args) // XS sets this, which breaks pretty much everything if it doesn't match what was passed to --sdkroot. Environment.SetEnvironmentVariable ("XCODE_DEVELOPER_DIR_PATH", null); + // MSBuild gets confused sometimes, and runs into some sort of deadlock. Disable node re-use to try to mitigate that. + // Ref: https://github.com/xamarin/maccore/issues/2444 + Environment.SetEnvironmentVariable ("MSBUILDDISABLENODEREUSE", "1"); + var harness = new Harness (new XmlResultParser (), action, configuration); return harness.Execute ();