From 2783ecf7488da808c853b6be4f3a741cfafc7869 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 10 Feb 2025 14:57:53 +0100 Subject: [PATCH] React to NuGet package pruning warnings Contributes to https://github.com/dotnet/sdk/pull/46642 NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted. React to two warnings that got flagged when building the product source-only. --- .../Microsoft.TestPlatform.CoreUtilities.csproj | 7 ++----- .../Microsoft.TestPlatform.ObjectModel.csproj | 5 ++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj b/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj index 919bb26e7e..866225a77c 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj +++ b/src/Microsoft.TestPlatform.CoreUtilities/Microsoft.TestPlatform.CoreUtilities.csproj @@ -17,11 +17,8 @@ - - - - - + + diff --git a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj index 034807a589..1675d4cb00 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj +++ b/src/Microsoft.TestPlatform.ObjectModel/Microsoft.TestPlatform.ObjectModel.csproj @@ -35,9 +35,8 @@ - + Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net48')) != 'true' and '$(TargetFrameworkIdentifier)' == '.NETFramework'" /> +