NuGetPackageValidationOptions Class

Provides configuration options for NuGet package validation.

public sealed class NuGetPackageValidationOptions

Constructors

NameDescription
NuGetPackageValidationOptions()

NuGetPackageValidationOptions()

NuGetPackageValidationOptions.cs
public NuGetPackageValidationOptions()

No documentation is available.

Properties

NameDescription
ConfigureRequestGets or sets an optional action to configure HTTP requests made during validation, such as adding authentication headers.
DefaultGets the default validation options with all standard validation rules.
ExcludedRuleIdsGets the collection of error codes to exclude from validation. Errors with these codes will not be reported.
RulesGets the collection of validation rules to apply to the package.
SymbolServersGets the list of symbol server URLs to check for availability of PDB files.

Gets or sets an optional action to configure HTTP requests made during validation, such as adding authentication headers.

public Action<HttpRequestMessage>? ConfigureRequest { get; set; }

Gets the default validation options with all standard validation rules.

public static NuGetPackageValidationOptions Default { get; }

Gets the collection of error codes to exclude from validation. Errors with these codes will not be reported.

public ICollection<int> ExcludedRuleIds { get; }

Property value

ICollection<int>

Gets the collection of validation rules to apply to the package.

Gets the list of symbol server URLs to check for availability of PDB files.

public IList<string> SymbolServers { get; }

Property value

IList<string>