From d166ce6b518ba1283b08790e0f37b1db985ac491 Mon Sep 17 00:00:00 2001 From: Martin Ruiz Date: Tue, 26 Nov 2024 13:13:54 -0600 Subject: [PATCH] Don't select transitive packages in Updates tab --- .../Models/PackageSolutionDetailControlModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageSolutionDetailControlModel.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageSolutionDetailControlModel.cs index 4dcf33bc773..c18eb4517e8 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageSolutionDetailControlModel.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageSolutionDetailControlModel.cs @@ -612,7 +612,7 @@ private void BatchUpdateIsSelectedBasedOnInstalledVersion() { foreach (PackageInstallationInfo project in Projects) { - project.IsSelected = project.InstalledVersion != null; + project.IsSelected = project.InstalledVersion != null && project.PackageLevel.Equals(PackageLevel.TopLevel); } } finally