19 references to Suppression
Microsoft.DotNet.Build.Tasks.Packaging (19)
ValidateFrameworkPackage.cs (5)
44
var permittedInbox = GetSuppressionValues(
Suppression
.PermitInbox) ?? new HashSet<string>();
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.");
69
var permittedMissingInbox = GetSuppressionValues(
Suppression
.PermitMissingInbox) ?? new HashSet<string>();
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 (5)
171
var runtimeFxSuppression = GetSuppressionValues(
Suppression
.PermitRuntimeTargetMonikerMismatch) ?? new HashSet<string>();
210
bool permitImplementation = HasSuppression(
Suppression
.PermitImplementation, target);
228
if (validateFramework.IsInbox && !HasSuppression(
Suppression
.TreatAsOutOfBox, fx))
288
if (HasSuppression(
Suppression
.PermitMissingImplementation, target))
606
permitRevisions: HasSuppression(
Suppression
.PermitInboxRevsion)))
ValidationTask.cs (9)
47
private Dictionary<
Suppression
, HashSet<string>> _suppressions;
58
protected HashSet<string> GetSuppressionValues(
Suppression
key)
65
protected string GetSingleSuppressionValue(
Suppression
key)
72
protected bool HasSuppression(
Suppression
key)
77
protected bool HasSuppression(
Suppression
key, string value)
87
protected bool HasSuppression(
Suppression
key, NuGetFramework framework)
100
_suppressions = new Dictionary<
Suppression
, HashSet<string>>();
113
Suppression
key;
116
if (!Enum.TryParse<
Suppression
>(keyString, out key))