Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 909 Bytes

installation.md

File metadata and controls

32 lines (22 loc) · 909 Bytes

Installation

.. note::
    If you are upgrading to FluentValidation 11 from an older version, `please read the upgrade notes <upgrading-to-11.html>`_.

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:

Install-Package FluentValidation

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:

Install-Package FluentValidation.AspNetCore

or from the command line:

dotnet add package FluentValidation.AspNetCore