19 references to Suppression
Microsoft.DotNet.Build.Tasks.Packaging (19)
ValidateFrameworkPackage.cs (5)
43
var permittedInbox = GetSuppressionValues(
Suppression
.PermitInbox) ?? new HashSet<string>();
57
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.");
63
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.");
68
var permittedMissingInbox = GetSuppressionValues(
Suppression
.PermitMissingInbox) ?? new HashSet<string>();
78
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)
131
var runtimeFxSuppression = GetSuppressionValues(
Suppression
.PermitRuntimeTargetMonikerMismatch) ?? new HashSet<string>();
170
bool permitImplementation = HasSuppression(
Suppression
.PermitImplementation, target);
188
if (validateFramework.IsInbox && !HasSuppression(
Suppression
.TreatAsOutOfBox, fx))
248
if (HasSuppression(
Suppression
.PermitMissingImplementation, target))
566
permitRevisions: HasSuppression(
Suppression
.PermitInboxRevsion)))
ValidationTask.cs (9)
46
private Dictionary<
Suppression
, HashSet<string>> _suppressions;
57
protected HashSet<string> GetSuppressionValues(
Suppression
key)
64
protected string GetSingleSuppressionValue(
Suppression
key)
71
protected bool HasSuppression(
Suppression
key)
76
protected bool HasSuppression(
Suppression
key, string value)
86
protected bool HasSuppression(
Suppression
key, NuGetFramework framework)
99
_suppressions = new Dictionary<
Suppression
, HashSet<string>>();
112
Suppression
key;
115
if (!Enum.TryParse<
Suppression
>(keyString, out key))