diff --git a/aspnetcore/blazor/forms/validation.md b/aspnetcore/blazor/forms/validation.md index 576f51dbcc24..730a619caf70 100644 --- a/aspnetcore/blazor/forms/validation.md +++ b/aspnetcore/blazor/forms/validation.md @@ -2625,10 +2625,6 @@ public class ShipDescription ## Use validation models from a different assembly - - For model validation defined in a different assembly, such as a library or the `.Client` project of a Blazor Web App: * If the library is a plain class library (it isn't based on the `Microsoft.NET.Sdk.Web` or `Microsoft.NET.Sdk.Razor` SDKs), add a package reference to the library for the [`Microsoft.Extensions.Validation` NuGet package](https://www.nuget.org/packages/Microsoft.Extensions.Validation). Additional steps are required for plain class libraries, which are described later in this section. @@ -2665,9 +2661,9 @@ builder.Services.AddValidationForTypesInClient(); builder.Services.AddValidation(); ``` - +:::moniker-end + +:::moniker range="= aspnetcore-10.0" The new attributes from the `Microsoft.Extensions.Validation` package ( and ) are published as *experimental* in .NET 10. The package is intended to provide a new shared infrastructure for validation features across frameworks, and publishing experimental types provides greater flexibility for the final design of the public API for better support in consuming frameworks.