From aef398ffa7d4e2e9f5f0d1f3b1b6215f9958689c Mon Sep 17 00:00:00 2001 From: Martin Ruiz Date: Tue, 3 Dec 2024 13:32:53 -0800 Subject: [PATCH] Don't select transitive packages in Updates tab (#6179) --- .../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