1 write to _index
Microsoft.DotNet.Build.Tasks.Packaging (1)
ValidationTask.cs (1)
150
_index
= PackageIndex.Load(PackageIndexes.Select(pi => pi.GetMetadata("FullPath")));
6 references to _index
Microsoft.DotNet.Build.Tasks.Packaging (6)
ValidateFrameworkPackage.cs (5)
56
if (!
_index
.Packages.TryGetValue(name, out packageInfo))
58
logMissingInbox($"File {name} was included framework package {_report.Id}/{_report.Version} but that file is missing from package index {string.Join(";",
_index
.IndexSources)}. Please add it with appropriate {nameof(PackageInfo.InboxOn)} entry for {Framework} or suppress this message with {nameof(Suppression.PermitInbox)} suppression.");
64
logMissingInbox($"File {name}, version {testAsset.Version} was included framework package {_report.Id}/{_report.Version} but that version is not considered inbox in package index {string.Join(";",
_index
.IndexSources)}. Please add it with appropriate {nameof(PackageInfo.InboxOn)} entry for {Framework} or suppress this message with {nameof(Suppression.PermitInbox)} suppression.");
71
var missingInboxAssemblies =
_index
.Packages.Where(packageInfo => packageInfo.Value.InboxOn.IsAnyVersionInbox(fx) && !testAssetsByName.ContainsKey(packageInfo.Key));
79
logMissingPackage($"File {missingInboxAssembly.Key}.dll is marked as inbox for framework {Framework} but was missing from framework package {_report.Id}/{_report.Version}. Either add the file or update {nameof(PackageInfo.InboxOn)} entry in {string.Join(";",
_index
.IndexSources)}. This may be suppressed with {nameof(Suppression.PermitMissingInbox)} suppression");
ValidatePackage.cs (1)
588
if (
_index
.Packages.TryGetValue(ContractName, out packageInfo))