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 | 305 | 11/12/2025 | |
| 10.0.0 | 423 | 1/4/2025 | |
| 9.2.0 | 343 | 8/18/2024 | |
| 9.0.2 | 212 | 5/27/2024 | |
| 9.0.1 | 281 | 1/27/2024 | |
| 9.0.0 | 303 | 12/2/2023 | |
| 8.2.0 | 324 | 7/16/2023 | |
| 8.1.0 | 261 | 5/4/2023 | |
| 7.1.0 | 433 | 1/22/2023 | |
| 7.0.0 | 507 | 11/13/2022 | |
| 6.3.2 | 511 | 10/17/2022 | |
| 6.3.1 | 616 | 9/25/2022 | |
| 6.3.0 | 590 | 9/7/2022 | |
| 6.2.0 | 603 | 7/24/2022 | |
| 6.1.0 | 598 | 7/5/2022 | |
| 6.0.0 | 584 | 5/14/2022 | |
| 5.3.4 | 702 | 2/9/2022 | |
| 5.3.3 | 447 | 1/2/2022 | |
| 5.3.2 | 542 | 10/30/2021 | |
| 5.3.1 | 683 | 8/29/2021 | |
| 5.3.0 | 520 | 7/24/2021 | |
| 5.2.0 | 527 | 6/4/2021 | |
| 5.1.0 | 531 | 5/23/2021 | |
| 5.0.1 | 527 | 4/25/2021 | |
| 5.0.0 | 536 | 4/11/2021 | |
| 4.4.0 | 528 | 3/7/2021 | |
| 4.3.1 | 535 | 2/23/2021 | |
| 4.3.0 | 601 | 2/6/2021 | |
| 4.2.0 | 613 | 1/16/2021 | |
| 4.1.0 | 738 | 12/16/2020 | |
| 4.0.1 | 651 | 11/29/2020 | |
| 4.0.0 | 597 | 11/11/2020 | |
| 3.4.0 | 781 | 10/25/2020 | |
| 3.3.0 | 728 | 10/16/2020 | |
| 3.2.1 | 674 | 10/4/2020 | |
| 3.2.0 | 632 | 8/28/2020 | |
| 3.1.0 | 726 | 8/13/2020 | |
| 3.0.3 | 693 | 7/25/2020 | |
| 3.0.2 | 689 | 7/16/2020 | |
| 3.0.1 | 641 | 7/14/2020 | |
| 3.0.0 | 676 | 7/7/2020 | |
| 2.0.2 | 652 | 7/2/2020 | |
| 2.0.1 | 702 | 6/16/2020 | |
| 2.0.0 | 734 | 6/14/2020 | |
| 1.2.4 | 709 | 5/20/2020 | |
| 1.2.3 | 688 | 4/29/2020 | |
| 1.2.2 | 683 | 4/21/2020 | |
| 1.2.1 | 751 | 3/7/2020 | |
| 1.2.0 | 739 | 3/1/2020 | |
| 1.1.0 | 1,148 | 3/1/2020 | |
| 1.0.0 | 1,158 | 3/1/2020 |
- update .NET 10.0
- update FluentValidation 12.1.0
- update SimpleInjector 5.5.0