Soenneker.Quark.Gen.Validation 11.0.120

Prefix Reserved
dotnet add package Soenneker.Quark.Gen.Validation --version 11.0.120
                    
NuGet\Install-Package Soenneker.Quark.Gen.Validation -Version 11.0.120
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Quark.Gen.Validation" Version="11.0.120">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Quark.Gen.Validation" Version="11.0.120" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Quark.Gen.Validation">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Quark.Gen.Validation --version 11.0.120
                    
#r "nuget: Soenneker.Quark.Gen.Validation, 11.0.120"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Quark.Gen.Validation@11.0.120
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Quark.Gen.Validation&version=11.0.120
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Quark.Gen.Validation&version=11.0.120
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Quark.Gen.Validation

External build-time validation code generation for AOT-compatible Quark applications.

Installation

dotnet add package Soenneker.Quark.Gen.Validation

MSBuild runs the external .NET executable before compilation. It discovers property validation attributes in C# and Razor models and emits implementations of Quark's IGeneratedQuarkValidation. No Roslyn analyzer or compiler dependency is added to the application runtime.

Models and their containing types must be partial. Models with validation attributes are discovered automatically; use [GenerateQuarkValidation] for models without attributes. Reference the generator in the project defining each model. Quark Suite forwards the build dependency to consumers.

public sealed partial class Registration
{
    [Required]
    public string? Password { get; set; }

    [QuarkCompare(nameof(Password))]
    public string? Confirmation { get; set; }

    [QuarkRange(typeof(decimal), "0", "100", ParseLimitsInInvariantCulture = true)]
    public decimal Amount { get; set; }
}

Generated validation reads the current model property and preserves required-first evaluation, display names, resource messages, inherited attributes, and custom validation attributes. It validates fields, not whole objects: model attributes and IValidatableObject are not invoked, matching Quark Suite. Delegates, async validators, pattern validation, and component state remain owned by Suite.

Standard Compare and typed Range are supported, but .NET annotates their constructors as trimming-unsafe, including their original attribute declarations. QuarkCompare and QuarkRange avoid those declarations for strict AOT builds. They are generator-only attributes, not inputs to the framework's reflection-based Validator. Custom attributes, validation methods, and converters must themselves be AOT-compatible. Runtime TypeDescriptor provider registration cannot change generated metadata.

Set ValidationBuildEnabled=false to disable generation. ValidationBuildTasksDllPath can point to a locally built executable assembly. Output lives under obj/<configuration>/<framework>/QuarkValidation; unchanged generated files are not rewritten. Referenced model assemblies must generate their own validators, or register a typed adapter through GeneratedValidationRegistry.Register<T>.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Quark.Gen.Validation:

Package Downloads
Soenneker.Quark.Suite

Shadcn-powered Blazor UI, refined and modular.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.120 878 12/3/2026
11.0.119 527 12/3/2026
11.0.118 121 12/3/2026
11.0.117 164 12/3/2026
11.0.115 202 12/2/2026
11.0.114 55 12/2/2026
11.0.110 623 12/2/2026
11.0.109 74 12/2/2026
11.0.108 376 12/2/2026
11.0.107 453 12/2/2026
11.0.106 723 12/1/2026
11.0.105 102 12/1/2026
11.0.104 356 12/1/2026
11.0.103 309 12/1/2026
11.0.102 384 12/1/2026
11.0.101 150 12/1/2026
11.0.100 348 11/30/2026
11.0.99 840 11/30/2026
11.0.98 186 11/30/2026
11.0.97 368 11/30/2026
Loading failed

Updated Multiple NuGet packages