If you are upgrading to FluentValidation 10 from an older version, please read the upgrade notes.
Before creating any validators, you will need to add a reference to FluentValidation.dll in your project. The simplest way to do this is to use either the NuGet package manager, or the dotnet CLI.
Using the NuGet package manager console within Visual Studio run the following command:
Or using the .net core CLI from a terminal window:
dotnet add package FluentValidation
For integration with ASP.NET Core, install the FluentValidation.AspNetCore package from Visual Studio:
or from the command line:
dotnet add package FluentValidation.AspNetCore