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