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