AdaskoTheBeAsT.FluentValidation.SimpleInjector
11.0.0
dotnet add package AdaskoTheBeAsT.FluentValidation.SimpleInjector --version 11.0.0
NuGet\Install-Package AdaskoTheBeAsT.FluentValidation.SimpleInjector -Version 11.0.0
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" Version="11.0.0" />
<PackageVersion Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" Version="11.0.0" />
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" />
paket add AdaskoTheBeAsT.FluentValidation.SimpleInjector --version 11.0.0
#r "nuget: AdaskoTheBeAsT.FluentValidation.SimpleInjector, 11.0.0"
#:package AdaskoTheBeAsT.FluentValidation.SimpleInjector@11.0.0
#addin nuget:?package=AdaskoTheBeAsT.FluentValidation.SimpleInjector&version=11.0.0
#tool nuget:?package=AdaskoTheBeAsT.FluentValidation.SimpleInjector&version=11.0.0
AdaskoTheBeAsT.FluentValidation.SimpleInjector
FluentValidation extensions to SimpleInjector
Badges
Usage
This library scans assemblies and adds implementations of IValidator<> to the SimpleInjector container.
There are few options to use with Container instance:
Marker type from assembly which will be scanned
container.AddFluentValidation(typeof(MyValidator), type2 /*, ...*/);List of assemblies which will be scanned.
Below is sample for scanning assemblies from some solution.
[ExcludeFromCodeCoverage] public static class FluentValidationConfigurator { private const string NamespacePrefix = "YourNamespace"; public static void Configure(Container container) { var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies().ToList(); var assemblies = new List<Assembly>(); var mainAssembly = typeof(FluentValidationConfigurator).Assembly; var refAssemblies = mainAssembly.GetReferencedAssemblies(); foreach (var assemblyName in refAssemblies .Where(a => a.FullName.StartsWith(NamespacePrefix, StringComparison.OrdinalIgnoreCase))) { var assembly = loadedAssemblies.Find(l => l.FullName == assemblyName.FullName) ?? AppDomain.CurrentDomain.Load(assemblyName); assemblies.Add(assembly); } container.AddFluentValidation(assemblies); } }Special configuration action with different lifetime for validators
container.AddFluentValidation( cfg => { cfg.WithAssembliesToScan(assemblies); cfg.AsScoped(); });
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FluentValidation (>= 12.1.0)
- SimpleInjector (>= 5.5.0)
-
net8.0
- FluentValidation (>= 12.1.0)
- SimpleInjector (>= 5.5.0)
-
net9.0
- FluentValidation (>= 12.1.0)
- SimpleInjector (>= 5.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 11.0.0 | 340 | 11/12/2025 | |
| 10.0.0 | 440 | 1/4/2025 | |
| 9.2.0 | 362 | 8/18/2024 | |
| 9.0.2 | 231 | 5/27/2024 | |
| 9.0.1 | 295 | 1/27/2024 | |
| 9.0.0 | 321 | 12/2/2023 | |
| 8.2.0 | 331 | 7/16/2023 | |
| 8.1.0 | 276 | 5/4/2023 | |
| 7.1.0 | 452 | 1/22/2023 | |
| 7.0.0 | 536 | 11/13/2022 | |
| 6.3.2 | 535 | 10/17/2022 | |
| 6.3.1 | 639 | 9/25/2022 | |
| 6.3.0 | 615 | 9/7/2022 | |
| 6.2.0 | 622 | 7/24/2022 | |
| 6.1.0 | 624 | 7/5/2022 | |
| 6.0.0 | 603 | 5/14/2022 | |
| 5.3.4 | 722 | 2/9/2022 | |
| 5.3.3 | 468 | 1/2/2022 | |
| 5.3.2 | 569 | 10/30/2021 | |
| 5.3.1 | 703 | 8/29/2021 | |
| 5.3.0 | 543 | 7/24/2021 | |
| 5.2.0 | 549 | 6/4/2021 | |
| 5.1.0 | 559 | 5/23/2021 | |
| 5.0.1 | 547 | 4/25/2021 | |
| 5.0.0 | 557 | 4/11/2021 | |
| 4.4.0 | 556 | 3/7/2021 | |
| 4.3.1 | 564 | 2/23/2021 | |
| 4.3.0 | 619 | 2/6/2021 | |
| 4.2.0 | 640 | 1/16/2021 | |
| 4.1.0 | 763 | 12/16/2020 | |
| 4.0.1 | 677 | 11/29/2020 | |
| 4.0.0 | 625 | 11/11/2020 | |
| 3.4.0 | 809 | 10/25/2020 | |
| 3.3.0 | 756 | 10/16/2020 | |
| 3.2.1 | 700 | 10/4/2020 | |
| 3.2.0 | 662 | 8/28/2020 | |
| 3.1.0 | 760 | 8/13/2020 | |
| 3.0.3 | 720 | 7/25/2020 | |
| 3.0.2 | 715 | 7/16/2020 | |
| 3.0.1 | 671 | 7/14/2020 | |
| 3.0.0 | 703 | 7/7/2020 | |
| 2.0.2 | 683 | 7/2/2020 | |
| 2.0.1 | 728 | 6/16/2020 | |
| 2.0.0 | 758 | 6/14/2020 | |
| 1.2.4 | 732 | 5/20/2020 | |
| 1.2.3 | 712 | 4/29/2020 | |
| 1.2.2 | 711 | 4/21/2020 | |
| 1.2.1 | 777 | 3/7/2020 | |
| 1.2.0 | 766 | 3/1/2020 | |
| 1.1.0 | 1,206 | 3/1/2020 | |
| 1.0.0 | 1,221 | 3/1/2020 |
- update .NET 10.0
- update FluentValidation 12.1.0
- update SimpleInjector 5.5.0