From 43fbdd6f44f5c1858bcc0a2a218e608c5148ac15 Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Mon, 4 May 2026 07:43:45 -0700 Subject: [PATCH] Update README and project dependencies for ASP.NET Core 8 support --- Directory.Packages.props | 13 ++++++------- README.md | 7 ++++--- src/MiniValidation/MiniValidation.csproj | 4 ---- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 3973b15..777bab3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,15 +3,14 @@ true - - + - - - - - + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 3650c9f..483377b 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ Install the library from [NuGet](https://www.nuget.org/packages/MiniValidation): ❯ dotnet add package MiniValidation ``` -### ASP.NET Core 6+ Projects -If installing into an ASP.NET Core 6+ project, consider using the [MinimalApis.Extensions](https://www.nuget.org/packages/MinimalApis.Extensions) package instead, which adds extensions specific to ASP.NET Core, including a validation endpoint filter for .NET 7 apps: +### ASP.NET Core 8+ Projects +If installing into an ASP.NET Core 8+ project, consider using the [MinimalApis.Extensions](https://www.nuget.org/packages/MinimalApis.Extensions) package instead, which adds extensions specific to ASP.NET Core, including a validation endpoint filter: ``` console ❯ dotnet add package MinimalApis.Extensions ``` @@ -121,6 +121,7 @@ class WidgetWithCustomValidation : Widget, IValidatableObject } } ``` + ``` console ❯ widget.exe Widget 'widget' is valid! @@ -147,7 +148,7 @@ Widget 'MiniValidation' is valid! Widget 'MiniValidation' is valid! ``` -### Web app (.NET 6) +### Web app (.NET 8+) ```csharp using System.ComponentModel.DataAnnotations; using MiniValidation; diff --git a/src/MiniValidation/MiniValidation.csproj b/src/MiniValidation/MiniValidation.csproj index 44f3c99..b48eb90 100644 --- a/src/MiniValidation/MiniValidation.csproj +++ b/src/MiniValidation/MiniValidation.csproj @@ -15,10 +15,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive -