4 writes to Library
NuGet.DependencyResolver.Core (4)
ResolverUtility.cs (4)
144match.Library = dependencies.Library; 418Library = match.Identity, 544Library = library 572Library = new LibraryIdentity()
45 references to Library
NuGet.Commands (21)
RestoreCommand\DependencyGraphResolver.cs (1)
440NuGetVersion? resolvedVersion = childResolvedDependencyGraphItem.Item.Data.Match?.Library?.Version;
RestoreCommand\DownloadDependencyResolutionResult.cs (2)
52if (LibraryType.Unresolved == dependency.Item2.Library.Type) 56else if (LibraryType.Package == dependency.Item2.Library.Type)
RestoreCommand\LockFileBuilder.cs (2)
62.OrderBy(x => x.Data.Match.Library); 65var library = item.Data.Match.Library;
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (6)
76.Where(remoteMatch => remoteMatch.Library.Type == LibraryType.Package); 91var packageIdentity = new PackageIdentity(remoteMatch.Library.Name, remoteMatch.Library.Version); 170remoteMatch.Library.Name, 171remoteMatch.Library.Version); 176var library = remoteMatch.Library;
RestoreCommand\ProjectRestoreCommand.cs (8)
354.SelectMany(g => g.Install.Where(match => uniquePackages.Add(match.Library))).ToList(); 358SelectMany(ddi => ddi.Install.Where(match => uniquePackages.Add(match.Library)))); 398var packageIdentity = new PackageIdentity(installItem.Library.Name, installItem.Library.Version); 496if (match == null || match.Library.Type != LibraryType.Package) 503var info = NuGetv3LocalRepositoryUtility.GetPackage(localRepositories, match.Library.Name, match.Library.Version); 511logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_MergingRuntimes, match.Library));
RestoreCommand\RestoreResult.cs (1)
158return new HashSet<LibraryIdentity>(RestoreGraphs.Where(g => !g.InConflict).SelectMany(g => g.Install).Distinct().Select(m => m.Library));
RestoreCommand\Utility\LockFileUtils.cs (1)
607string relativePath = PathUtility.GetPathWithForwardSlashes(Path.Combine("bin", "placeholder", $"{localMatch.Library.Name}.dll"));
NuGet.DependencyResolver.Core (24)
GraphModel\GraphOperations.cs (1)
162var resolvedVersion = sideNode?.Item?.Data?.Match?.Library?.Version;
Remote\RemoteDependencyWalker.cs (1)
383if (StringComparer.OrdinalIgnoreCase.Equals(item.Data.Match.Library.Name, childDependencyLibrary.Name))
Remote\RemoteMatch.cs (3)
24return other != null && Library.Equals(other.Library); 29return Library.GetHashCode();
ResolverUtility.cs (19)
134match.Library, 146return new GraphItem<RemoteResolveResult>(match.Library) 242&& localMatch.Library.Version.Equals(library.Version)) 251&& remoteMatch.Library.Version.Equals(library.Version)) 317var localMatch = await FindLibraryByVersionAsync(remoteMatch.Library, framework, localProviders, cacheContext, logger, cancellationToken); 320&& localMatch.Library.Version.Equals(remoteMatch.Library.Version)) 338&& localMatch.Library.Version.Equals(libraryRange.VersionRange.MinVersion)) 353localMatch = await FindLibraryByVersionAsync(remoteMatch.Library, framework, remoteProviders, cacheContext, logger, cancellationToken); 362current: localMatch.Library.Version, 363considering: remoteMatch.Library.Version)) 467if (nonHttpMatch != null && nonHttpMatch.Library.Version.Equals(libraryRange.VersionRange.MinVersion)) 483nonHttpMatch?.Library?.Version, 484httpMatch?.Library.Version)) 519match?.Library?.Version != null && 521match.Library.Version.Equals(libraryRange.VersionRange.MinVersion)) 528current: bestMatch?.Library?.Version, 529considering: match?.Library?.Version)) 558return new GraphItem<RemoteResolveResult>(match.Library)