Validly
Github
  • Introduction
  • Getting Started
    • Quickstart
    • Installation
    • Configuration
    • Benchmarks
  • Basics
    • Defining Validations
    • Handling Validation Result
    • Automatically Added Validators
  • Validators
    • Build-in Validators
      • Common
      • Strings
      • Numbers
      • Enums
      • Collections
    • Creating Custom Validators
    • Manual Validation
      • CustomValidation Attribute
      • Before And After Hooks
Powered by GitBook
On this page
  • Prerequisites
  • Installation
  • .NET Framework
  1. Getting Started

Installation

PreviousQuickstartNextConfiguration

Last updated 6 months ago

Prerequisites

  • A project targeting .NET compatible with netstandard 2.0,

    • is a table with supported implementations.

Installation

Core package

dotnet add package Validly

Set of predefined validators

dotnet add package Validly.Extensions.Validators

Source Generator

dotnet add package Validly.SourceGenerator

Core package

Install-Package Validly

Set of predefined validators

Install-Package Validly.Extensions.Validators

Source Generator

Install-Package Validly.SourceGenerator

Core package

<PackageReference Include="Validly" Version="1.0.0" />

Set of predefined validators

<PackageReference Include="Validly.Extensions.Validators" Version="1.0.0" />

Source Generator

<PackageReference Include="Validly.SourceGenerator" Version="1.0.0" />

.NET Framework

To use this library with .NET Framework, there are some dependencies you may need to install:

  • System.Threading.Tasks.Extensions

  • Microsoft.Extensions.DependencyInjection

  • Microsoft.Bcl.AsyncInterfaces

These packages can be installed using a NuGet package manager, or the dotnet CLI:

dotnet add package System.Threading.Tasks.Extensions
dotnet add package Microsoft.Extensions.DependencyInjection
dotnet add package Microsoft.Bcl.AsyncInterfaces

Here