Skip to content

Commit

Permalink
nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
vipwan committed Sep 26, 2024
1 parent e6c0b99 commit d0a6ceb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Biwen.QuickApi/Biwen.QuickApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentValidation.AspNetCore" Version="$(FluentValidationAspNetCoreVer)" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="$(FluentValidationAspNetCoreVer)" />
<PackageReference Include="NCrontab" Version="3.3.3" />
<PackageReference Include="HtmlSanitizer" Version="[8.2.871-beta,9.0.0)" />
<PackageReference Include="Mapster.DependencyInjection" Version="1.0.2-pre01" />
Expand Down
3 changes: 1 addition & 2 deletions Biwen.QuickApi/ServiceRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -58,7 +57,7 @@ public static IServiceCollection AddBiwenQuickApis(
services.ConfigureHttpJsonOptions(x => { });

//注册验证器
services.AddFluentValidationAutoValidation();
services.AddValidatorsFromAssemblies(Assemblies.AllRequiredAssemblies);

//作用域范围内缓存服务提供程序
services.AddScoped<ICachedServiceProvider, CachedServiceProvider>();
Expand Down
2 changes: 1 addition & 1 deletion Version.Props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup Label="Package versions used in this repository">
<FluentValidationAspNetCoreVer>11.3.0</FluentValidationAspNetCoreVer>
<FluentValidationAspNetCoreVer>11.10.0</FluentValidationAspNetCoreVer>
<MicrosoftExtensionsVer>8.9.1</MicrosoftExtensionsVer>
</PropertyGroup>

Expand Down

0 comments on commit d0a6ceb

Please sign in to comment.