From e9c0d631f826334bcf31c587974a37fb429a0635 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 11 Feb 2025 11:04:08 -0600 Subject: [PATCH] Fix `NU1510` warning as error Context: https://github.com/NuGet/NuGet.Client/pull/6239 .NET 10 Preview 1 enables `$(RestoreEnablePackagePruning)=true` by default. This produces multiple warnings (as errors) in dotnet/android: external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj : warning NU1510: PackageReference System.Runtime will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary. external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj : warning NU1510: PackageReference System.Reflection.Metadata will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary. external/debugger-libs/Mono.Debugging/Mono.Debugging.csproj : warning NU1510: PackageReference System.Buffers will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary. external/debugger-libs/Mono.Debugging/Mono.Debugging.csproj : warning NU1510: PackageReference System.Collections.Immutable will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary. It appears we can safely remove these references for `net6.0` `$(TargetFramework)`. --- Mono.Debugger.Soft/Mono.Debugger.Soft.csproj | 4 ++-- Mono.Debugging/Mono.Debugging.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj b/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj index c0262ed0..20a64855 100644 --- a/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj +++ b/Mono.Debugger.Soft/Mono.Debugger.Soft.csproj @@ -26,8 +26,8 @@ - - + + diff --git a/Mono.Debugging/Mono.Debugging.csproj b/Mono.Debugging/Mono.Debugging.csproj index 9c28e123..1f9d4deb 100644 --- a/Mono.Debugging/Mono.Debugging.csproj +++ b/Mono.Debugging/Mono.Debugging.csproj @@ -23,8 +23,8 @@ - - + +