NuGetPackageValidationError Class
- Namespace
- Meziantou.Framework.NuGetPackageValidation
- Assembly
- Meziantou.Framework.NuGetPackageValidation.dll
- Package
- Meziantou.Framework.NuGetPackageValidation 2.0.19
- Source
- NuGetPackageValidationError.cs
- Available in package assets
- net10.0net11.0
Represents a validation error found during NuGet package validation.
public sealed class NuGetPackageValidationError
Constructors
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
| Name | Description |
|---|
| ErrorCode | Gets the numeric error code identifying the type of validation error. |
| FileName | Gets the optional file name within the package where the error was found. |
| HelpText | Gets optional help text providing guidance on how to fix the error. |
| Message | Gets a human-readable message describing the validation error. |
Gets the numeric error code identifying the type of validation error.
public int ErrorCode { get; }
Gets the optional file name within the package where the error was found.
public string? FileName { get; }
Gets optional help text providing guidance on how to fix the error.
public string? HelpText { get; }
Gets a human-readable message describing the validation error.
public string Message { get; }
Methods
public override string ToString()
No documentation is available.