From c2ccf62935851101aaf1fa28fcf151cccd062632 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Fri, 14 Feb 2025 12:41:45 +0100 Subject: [PATCH] Contributes to https://github.com/dotnet/sdk/pull/46829 React to NuGet package pruning warnings NuGet added a new feature that automatically prunes package and project references that are provided by the shared framework that is targeted. Resolve the one warning that got emitted when building the repository in non-source-only mode. --- Directory.Packages.props | 4 ---- test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj | 3 +-- test/dotnet.Tests/dotnet.Tests.csproj | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f285884ad53a..604556bfd876 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -95,7 +95,6 @@ - @@ -104,14 +103,11 @@ - - - diff --git a/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj b/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj index 8ec880dcddaf..1ac52334565b 100644 --- a/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj +++ b/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj @@ -1,4 +1,5 @@  + $(ToolsetTargetFramework) Msbuild.Tests.Utilities @@ -15,11 +16,9 @@ - - diff --git a/test/dotnet.Tests/dotnet.Tests.csproj b/test/dotnet.Tests/dotnet.Tests.csproj index 58062b2df585..1a306d59176c 100644 --- a/test/dotnet.Tests/dotnet.Tests.csproj +++ b/test/dotnet.Tests/dotnet.Tests.csproj @@ -117,7 +117,6 @@ -