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