Validation 2.6.55-rc.1

This is a prerelease version of Validation.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Validation --version 2.6.55-rc.1                
NuGet\Install-Package Validation -Version 2.6.55-rc.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Validation" Version="2.6.55-rc.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Validation --version 2.6.55-rc.1                
#r "nuget: Validation, 2.6.55-rc.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Validation as a Cake Addin
#addin nuget:?package=Validation&version=2.6.55-rc.1&prerelease

// Install Validation as a Cake Tool
#tool nuget:?package=Validation&version=2.6.55-rc.1&prerelease                

Validation

Method input validation and runtime checks that report errors or throw exceptions when failures are detected.

Check out our full documentation.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1);
Requires.NotNullOrEmpty(arg2);

State validation via the Verify class throws an InvalidOperationException.

Verify.Operation(condition, "some error occurred.");

Internal integrity checks via the Assumes class throws an InternalErrorException.

Assumes.True(condition, "some error");

Warning signs that should not throw exceptions via the Report class.

Report.IfNot(condition, "some error");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (78)

Showing the top 5 NuGet packages that depend on Validation:

Package Downloads
Xunit.SkippableFact

Make your Xunit test methods self-determine to report a "skipped" result. Useful for such cases as "not supported on this platform" results or other environmental inputs.

Microsoft.Diagnostics.EventFlow.Core

Defines core interfaces and types that comprise Microsoft.Diagnostics.EventFlow library.

Microsoft.Diagnostics.EventFlow.EtwUtilities

Provides utility classes for processing data from Event Tracing for Windows (ETW) providers.

Microsoft.Diagnostics.EventFlow.Outputs.EventHub

Provides an output implementation that sends diagnostics data to Azure Event Hubs.

ImmutableTrie

Immutable collections that use trie as their internal data structure, and provide a direct replacement for the .net's implementation of ImmutableList and ImmutableDictionary

GitHub repositories (29)

Showing the top 5 popular GitHub repositories that depend on Validation:

Repository Stars
mono/SkiaSharp
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
xamarin/xamarin-forms-samples
Sample apps built using the Xamarin.Forms framework
dotnet/pinvoke
A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
aws/aws-sdk-net
The official AWS SDK for .NET. For more information on the AWS SDK for .NET, see our web site:
xamarin/XamarinComponents
Plugins for Xamarin
Version Downloads Last updated
2.6.68 112 12/20/2024
2.6.65-rc.2 41 12/20/2024
2.6.55-rc.1 44 12/20/2024
2.6.13-beta 28,381 12/25/2021
2.6.7-beta 607 10/1/2021
2.5.51 1,609,765 12/29/2021
2.5.42 448,509 7/5/2021
2.5.5-beta 24,059 9/25/2020
2.4.22 2,474,838 3/26/2019
2.4.18 33,100,545 10/31/2017
2.4.17 8,035 10/29/2017
2.4.15 2,681,244 3/15/2017
2.4.15-g8377954d86 7,561 3/15/2017
2.4.13 270,966 3/5/2017
2.4.10 13,870 2/25/2017
2.4.9 32,164 2/21/2017
2.4.7 10,303 2/17/2017
2.3.7 907,888 8/14/2016
2.3.5 42,005 7/30/2016
2.2.8 3,482,911 10/10/2015
2.2.5 8,882 10/8/2015
2.2.4 9,125 10/6/2015
2.0.6.15003 1,046,266 1/4/2015
2.0.5.14286 44,937 10/14/2014
2.0.4.14103 237,441 4/14/2014
2.0.3.13323 272,902 11/19/2013
2.0.2.13022 672,104 1/22/2013
2.0.1.12362 13,062 12/27/2012
2.0.0.12319 82,899 11/15/2012
1.0.0.12259 11,688 9/15/2012