Sparkdo.Validation 2.0.0-preview.1

This is a prerelease version of Sparkdo.Validation.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Sparkdo.Validation --version 2.0.0-preview.1
                    
NuGet\Install-Package Sparkdo.Validation -Version 2.0.0-preview.1
                    
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="Sparkdo.Validation" Version="2.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.Validation" Version="2.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.Validation" />
                    
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 Sparkdo.Validation --version 2.0.0-preview.1
                    
#r "nuget: Sparkdo.Validation, 2.0.0-preview.1"
                    
#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 Sparkdo.Validation@2.0.0-preview.1
                    
#: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=Sparkdo.Validation&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.Validation&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Tool

Sparkdo.Validation

Sparkdo.Validation 提供默认对象验证器、invocation 参数 validation middleware、Package Manifest 自动接线和嵌入式源码生成器。

Package Manifest 默认对 IValidationEnabled、类型或方法上的 [ValidationEnabled] 所标记的 async/async-stream contract method 使用 ValidationMiddleware,并由方法级 [ValidationDisabled] veto。应用只在扩展范围、调整顺序或通过 Disable(ValidationCapability.Id) 整体关闭时显式配置。Runtime 使用 Sparkdo 已生成的 invocation descriptor,不扫描程序集、不反射调用 validator。

源码生成器沿用 Sparkdo.Json 的 Package/Application role 模式:Package role 输出 validator/contributor AssemblyMetadata,Application role 聚合本地与引用程序集贡献并生成 SparkdoValidationBootstrapContribution.g.cs,由通用 application bootstrap extension point 精确注册。

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Sparkdo.Validation:

Package Downloads
Sparkdo.Features

Sparkdo 功能系统库,提供功能定义、管理、检查和拦截功能

Sparkdo.SettingManagement.Domain.Shared

Sparkdo 设置管理领域共享库,提供设置管理模块的共享资源、常量定义和数据传输对象

Sparkdo.FeatureManagement.Domain.Shared

Sparkdo 功能管理共享领域层,提供功能管理模块的共享资源、常量定义和数据传输对象

Sparkdo.PermissionManagement.Domain.Shared

Sparkdo 权限管理领域共享库,提供权限管理功能的领域共享模型、接口定义和常量

Sparkdo.TenantManagement.Domain.Shared

Sparkdo 租户管理共享资源和配置

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.2 43 7/20/2026
2.0.0-preview.1 43 7/18/2026
1.0.4-preview.3 192 6/8/2026
1.0.4-preview.2 186 6/7/2026
1.0.4-preview.1 181 6/7/2026
1.0.3 412 6/6/2026
1.0.3-preview.1 180 5/17/2026
1.0.2 346 4/27/2026
1.0.2-preview.5 110 4/15/2026
1.0.2-preview.4 117 2/8/2026
1.0.2-preview.3 117 2/1/2026
1.0.2-preview.2 122 1/31/2026
1.0.2-preview.1 209 12/4/2025
1.0.1 1,073 11/27/2025
1.0.0 1,047 11/25/2025
1.0.0-preview.5 155 10/24/2025