diff --git a/Biwen.QuickApi/Biwen.QuickApi.csproj b/Biwen.QuickApi/Biwen.QuickApi.csproj index dad10802..da3f5575 100644 --- a/Biwen.QuickApi/Biwen.QuickApi.csproj +++ b/Biwen.QuickApi/Biwen.QuickApi.csproj @@ -39,7 +39,7 @@ - + diff --git a/Biwen.QuickApi/ServiceRegistration.cs b/Biwen.QuickApi/ServiceRegistration.cs index 99185049..d650689d 100644 --- a/Biwen.QuickApi/ServiceRegistration.cs +++ b/Biwen.QuickApi/ServiceRegistration.cs @@ -6,7 +6,6 @@ using Biwen.QuickApi.Http; using Biwen.QuickApi.Serializer; -using FluentValidation.AspNetCore; using Microsoft.AspNetCore.Antiforgery; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; @@ -58,7 +57,7 @@ public static IServiceCollection AddBiwenQuickApis( services.ConfigureHttpJsonOptions(x => { }); //注册验证器 - services.AddFluentValidationAutoValidation(); + services.AddValidatorsFromAssemblies(Assemblies.AllRequiredAssemblies); //作用域范围内缓存服务提供程序 services.AddScoped(); diff --git a/Version.Props b/Version.Props index 1dc1fffc..37aa133f 100644 --- a/Version.Props +++ b/Version.Props @@ -9,7 +9,7 @@ - 11.3.0 + 11.10.0 8.9.1