From 509661e54f2d985c568adc491d02327ab7fe9bce Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:20:25 -0700 Subject: [PATCH] Separate Microsoft.TestCommon more (#400) - pre-restore and prebuild the project before anything that depends on it - avoid references from other test projects doing any real work - make ordering even more explicit - avoid confusion between batching builds and `$(BuildInParallel)` - turns out this also reduces the number of double writes binary logs show significantly --- Runtime.msbuild | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/Runtime.msbuild b/Runtime.msbuild index c77f8bc72..815aaf93e 100644 --- a/Runtime.msbuild +++ b/Runtime.msbuild @@ -52,14 +52,26 @@ + + <_Testing_NetStandard1_3 Include="true;false" /> + + - - <_ToRestore Include="Runtime.sln" /> - <_ToRestore Include="test\Microsoft.TestCommon\Microsoft.TestCommon.csproj" - AdditionalProperties="Testing_NetStandard1_3=true" /> - - + + + @@ -79,14 +91,28 @@ - - + + + + + + Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled); + VisualStudioVersion=$(VisualStudioVersion)" />