NuGetPackageValidationError Class

Represents a validation error found during NuGet package validation.

public sealed class NuGetPackageValidationError

Constructors

NameDescription
NuGetPackageValidationError(int, string, string?, string?)Initializes a new instance of the NuGetPackageValidationError class.

NuGetPackageValidationError(int, string, string?, string?)

NuGetPackageValidationError.cs

Initializes a new instance of the NuGetPackageValidationError class.

public NuGetPackageValidationError(int errorCode, string message, string? helpText, string? fileName = null)

Parameters

errorCode int
The numeric error code identifying the type of validation error.
message string
A human-readable message describing the validation error.
helpText string?
Optional help text providing guidance on how to fix the error.
fileName string?
Optional file name within the package where the error was found.

Properties

NameDescription
ErrorCodeGets the numeric error code identifying the type of validation error.
FileNameGets the optional file name within the package where the error was found.
HelpTextGets optional help text providing guidance on how to fix the error.
MessageGets a human-readable message describing the validation error.

Gets the numeric error code identifying the type of validation error.

public int ErrorCode { get; }

Property value

int

Gets the optional file name within the package where the error was found.

public string? FileName { get; }

Property value

string?

Gets optional help text providing guidance on how to fix the error.

public string? HelpText { get; }

Property value

string?

Gets a human-readable message describing the validation error.

public string Message { get; }

Property value

string

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.