diff --git a/src/FluentValidation.AspNetCore/FluentValidation.AspNetCore.csproj b/src/FluentValidation.AspNetCore/FluentValidation.AspNetCore.csproj index 8ad9a3e..792d517 100644 --- a/src/FluentValidation.AspNetCore/FluentValidation.AspNetCore.csproj +++ b/src/FluentValidation.AspNetCore/FluentValidation.AspNetCore.csproj @@ -1,7 +1,7 @@  netcoreapp3.1;net5.0;net6.0 - 11.2.0 + 11.2.1 FluentValidation.AspNetCore FluentValidation.AspNetCore FluentValidation.AspNetCore diff --git a/src/FluentValidation.AspNetCore/FluentValidationMvcConfiguration.cs b/src/FluentValidation.AspNetCore/FluentValidationMvcConfiguration.cs index 9b53fb0..ebafa5f 100644 --- a/src/FluentValidation.AspNetCore/FluentValidationMvcConfiguration.cs +++ b/src/FluentValidation.AspNetCore/FluentValidationMvcConfiguration.cs @@ -111,7 +111,7 @@ public bool LocalizationEnabled { /// Optional filter that allows certain types to be skipped from registration. /// The service lifetime that should be used for the validator registration. Defaults to Scoped /// Include internal validators. The default is false. - // [Obsolete("RegisterValidatorsFromAssemblyContaining is deprecated. Call services.AddValidatorsFromAssemblyContaining instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] + [Obsolete("RegisterValidatorsFromAssemblyContaining is deprecated. Call services.AddValidatorsFromAssemblyContaining instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] public FluentValidationMvcConfiguration RegisterValidatorsFromAssemblyContaining(Func filter = null, ServiceLifetime lifetime = ServiceLifetime.Scoped, bool includeInternalTypes = false) { return RegisterValidatorsFromAssemblyContaining(typeof(T), filter, lifetime, includeInternalTypes); } @@ -123,7 +123,7 @@ public FluentValidationMvcConfiguration RegisterValidatorsFromAssemblyContaining /// Optional filter that allows certain types to be skipped from registration. /// The service lifetime that should be used for the validator registration. Defaults to Scoped /// Include internal validators. The default is false. - // [Obsolete("RegisterValidatorsFromAssemblyContaining is deprecated. Call services.AddValidatorsFromAssemblyContaining instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] + [Obsolete("RegisterValidatorsFromAssemblyContaining is deprecated. Call services.AddValidatorsFromAssemblyContaining instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] public FluentValidationMvcConfiguration RegisterValidatorsFromAssemblyContaining(Type type, Func filter = null, ServiceLifetime lifetime = ServiceLifetime.Scoped, bool includeInternalTypes = false) { return RegisterValidatorsFromAssembly(type.Assembly, filter, lifetime, includeInternalTypes); } @@ -135,7 +135,7 @@ public FluentValidationMvcConfiguration RegisterValidatorsFromAssemblyContaining /// Optional filter that allows certain types to be skipped from registration. /// The service lifetime that should be used for the validator registration. Defaults to Scoped /// Include internal validators. The default is false. - // [Obsolete("RegisterValidatorsFromAssembly is deprecated. Call services.AddValidatorsFromAssembly instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] + [Obsolete("RegisterValidatorsFromAssembly is deprecated. Call services.AddValidatorsFromAssembly instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] public FluentValidationMvcConfiguration RegisterValidatorsFromAssembly(Assembly assembly, Func filter = null, ServiceLifetime lifetime = ServiceLifetime.Scoped, bool includeInternalTypes = false) { _services.AddValidatorsFromAssembly(assembly, lifetime, filter, includeInternalTypes); @@ -152,7 +152,7 @@ public FluentValidationMvcConfiguration RegisterValidatorsFromAssembly(Assembly /// Optional filter that allows certain types to be skipped from registration. /// The service lifetime that should be used for the validator registration. Defaults to Scoped /// Include internal validators. The default is false. - // [Obsolete("RegisterValidatorsFromAssemblies is deprecated. Call services.AddValidatorsFromAssemblies instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] + [Obsolete("RegisterValidatorsFromAssemblies is deprecated. Call services.AddValidatorsFromAssemblies instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963")] public FluentValidationMvcConfiguration RegisterValidatorsFromAssemblies(IEnumerable assemblies, Func filter = null, ServiceLifetime lifetime = ServiceLifetime.Scoped, bool includeInternalTypes = false) { _services.AddValidatorsFromAssemblies(assemblies, lifetime, filter, includeInternalTypes);