diff --git a/source/Nuke.Tooling/NuGetPackageResolver.cs b/source/Nuke.Tooling/NuGetPackageResolver.cs index 48bd7aed7..1c5ea4d80 100644 --- a/source/Nuke.Tooling/NuGetPackageResolver.cs +++ b/source/Nuke.Tooling/NuGetPackageResolver.cs @@ -216,7 +216,7 @@ public static InstalledPackage GetGlobalInstalledPackage( return versionRange == null ? candidatePackages.FirstOrDefault() - : candidatePackages.SingleOrDefault(x => x.Version == versionRange.FindBestMatch(candidatePackages.Select(y => y.Version))); + : candidatePackages.FirstOrDefault(x => x.Version == versionRange.FindBestMatch(candidatePackages.Select(y => y.Version))); } [CanBeNull]