4 writes to ContentHash
NuGet.Commands (1)
PackagesLockFileBuilder.cs (1)
54ContentHash = libraryLookup[identity].Sha512,
NuGet.PackageManagement (2)
Utility\PackagesConfigLockFileUtility.cs (2)
271ContentHash = contentHashUtil.GetContentHash(toInstall.PackageIdentity, token), 323ContentHash = contentHashUtil.GetContentHash(package.PackageIdentity, token),
NuGet.ProjectModel (1)
ProjectLockFile\PackagesLockFileFormat.cs (1)
277dependency.ContentHash = JsonUtility.ReadProperty<string>(jObject, ContentHashProperty);
10 references to ContentHash
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
1336.ToDictionary(dep => new PackageIdentity(dep.Id, dep.ResolvedVersion), val => val.ContentHash);
NuGet.PackageManagement (4)
Utility\PackagesConfigLockFileUtility.cs (4)
129bool allContentHashesMatch = comparisonResult.MatchedDependencies.All(pair => pair.Key.ContentHash == pair.Value.ContentHash); 137foreach (var difference in comparisonResult.MatchedDependencies.Where(kvp => kvp.Key.ContentHash != kvp.Value.ContentHash))
NuGet.ProjectModel (5)
ProjectLockFile\LockFileDependency.cs (3)
42ContentHash == other.ContentHash; 54combiner.AddObject(ContentHash);
ProjectLockFile\PackagesLockFileFormat.cs (2)
322if (dependency.ContentHash != null) 324json[ContentHashProperty] = dependency.ContentHash;