From a9f818bf82fab80ad6776904f22b0940431e8695 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Sat, 21 Apr 2018 10:55:48 -0700 Subject: [PATCH] Disable node-reuse to allow rebuilding Recent builds of msbuild have node reuse enabled by default. This locks up the task dlls after the test's completed preventing rebuilds untill you kill the process. --- .../IntegrationTests/MSBuildIntegrationTestBase.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs index c9765901cd..b0fd6e39c9 100644 --- a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs +++ b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs @@ -62,7 +62,12 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet) { var timeout = suppressTimeout ? (TimeSpan?)Timeout.InfiniteTimeSpan : null; - var buildArgumentList = new List(); + var buildArgumentList = new List + { + // Disable node-reuse. We don't want msbuild processes to stick around + // once the test is completed. + "/nr:false", + }; if (!suppressRestore) {