Tenekon.FluentValidation.Extensions.AspNetCore.Components
1.0.14-alpha-gd8abd9ba75
Prefix Reserved
This is a prerelease version of Tenekon.FluentValidation.Extensions.AspNetCore.Components.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Tenekon.FluentValidation.Extensions.AspNetCore.Components --version 1.0.14-alpha-gd8abd9ba75
NuGet\Install-Package Tenekon.FluentValidation.Extensions.AspNetCore.Components -Version 1.0.14-alpha-gd8abd9ba75
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="Tenekon.FluentValidation.Extensions.AspNetCore.Components" Version="1.0.14-alpha-gd8abd9ba75" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tenekon.FluentValidation.Extensions.AspNetCore.Components" Version="1.0.14-alpha-gd8abd9ba75" />
<PackageReference Include="Tenekon.FluentValidation.Extensions.AspNetCore.Components" />
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 Tenekon.FluentValidation.Extensions.AspNetCore.Components --version 1.0.14-alpha-gd8abd9ba75
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tenekon.FluentValidation.Extensions.AspNetCore.Components, 1.0.14-alpha-gd8abd9ba75"
#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 Tenekon.FluentValidation.Extensions.AspNetCore.Components@1.0.14-alpha-gd8abd9ba75
#: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=Tenekon.FluentValidation.Extensions.AspNetCore.Components&version=1.0.14-alpha-gd8abd9ba75&prerelease
#tool nuget:?package=Tenekon.FluentValidation.Extensions.AspNetCore.Components&version=1.0.14-alpha-gd8abd9ba75&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tenekon.FluentValidation.Extensions
🚧 This is a new project. You are very welcome to anticipate in this project, shaping the public API and submit ideas. Because this project is currently in alpha state, the public API may change drastically.
Table of Contents
Packages
Package | Description |
---|---|
Tenekon.FluentValidation.Extensions.AspNetCore.Components |
Core Blazor integration for FluentValidation |
Tenekon.FluentValidation.Extensions.AspNetCore.Components
An extension to integrate FluentValidation with ASP.NET Core Components (Blazor). This library enhances component-level validation in Blazor applications using FluentValidation.
Features
- ✅ Seamless integration with Blazor forms.
- 🔁 Component-level validator injection
- 🧩 Validator components are nestable
- 🚀 Optimized with FastExpressionCompiler
Documentation & Resources
- 📖 Cookbook: Component Validator Cookbook — Examples & use cases for all common and advanced scenarios.
- 🔬 Flow Logic: Flow Logic Diagram — Visual guide to how component validators interact with each other and Blazor's
EditContext
.
Installation
dotnet add package Tenekon.FluentValidation.Extensions.AspNetCore.Components
Usage
- Define your validator using
FluentValidation
:
public class MyModelValidator : AbstractValidator<MyModel>
{
public MyModelValidator()
{
RuleFor(x => x.Name).NotEmpty();
}
}
- Register the validator in your DI container:
builder.Services.AddValidatorsFromAssemblyContaining<MyModelValidator>();
- Use the component validator in your Blazor form:
<EditForm Model="@model" OnValidSubmit="@HandleValidSubmit">
<ComponentValidatorRootpath ValidatorType="typeof(MyModelValidator)" />
<InputText @bind-Value="model.Name" />
<ValidationMessage For="@(() => model.Name)" />
<button type="submit">Submit</button>
</EditForm>
Target Framework
.NET 9.0
Dependencies
FluentValidation
12.xMicrosoft.AspNetCore.Components.Forms
9.xFastExpressionCompiler
5.x
Development
git clone https://github.com/tenekon/Tenekon.FluentValidation.Extensions.git
cd Tenekon.FluentValidation.Extensions
dotnet build
License
MIT License - see LICENSE for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net8.0
- FastExpressionCompiler (>= 5.3.0)
- FluentValidation (>= 12.0.0)
- Microsoft.AspNetCore.Components.Forms (>= 8.0.18)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.42-alpha-gf27ed5ad86 | 115 | 7/28/2025 |
1.0.40-alpha-gac9cdc2716 | 108 | 7/27/2025 |
1.0.37-alpha-gce928b8c06 | 266 | 7/26/2025 |
1.0.31-alpha-g8de9e4a020 | 516 | 7/22/2025 |
1.0.17-alpha-g4ac8c36ae7 | 303 | 7/21/2025 |
1.0.14-alpha-gd8abd9ba75 | 48 | 7/19/2025 |
1.0.6-alpha-g5c83fc27bb | 76 | 6/27/2025 |
1.0.1-alpha-ge071d15233 | 117 | 6/26/2025 |