We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a8e7c commit 1633673Copy full SHA for 1633673
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs
@@ -924,6 +924,17 @@ private void DownloadMissingPackages(List<FileInfo> allFiles, ISet<string> dllPa
924
return;
925
}
926
927
+ var multipleVersions = notYetDownloadedPackages
928
+ .GroupBy(p => p.Name)
929
+ .Where(g => g.Count() > 1)
930
+ .Select(g => g.Key);
931
+
932
+ foreach (var package in multipleVersions)
933
+ {
934
+ logger.LogWarning($"Found multiple not yet restored packages with name '{package}'.");
935
+ notYetDownloadedPackages.Remove(new(package, PackageReferenceSource.PackagesConfig));
936
+ }
937
938
logger.LogInfo($"Found {notYetDownloadedPackages.Count} packages that are not yet restored");
939
940
var nugetConfigs = allFiles.SelectFileNamesByName("nuget.config").ToArray();
0 commit comments