Validation 2.6.68

dotnet add package Validation --version 2.6.68
                    
NuGet\Install-Package Validation -Version 2.6.68
                    
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.68" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Validation" Version="2.6.68" />
                    
Directory.Packages.props
<PackageReference Include="Validation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Validation --version 2.6.68
                    
#r "nuget: Validation, 2.6.68"
                    
#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.
#addin nuget:?package=Validation&version=2.6.68
                    
Install Validation as a Cake Addin
#tool nuget:?package=Validation&version=2.6.68
                    
Install Validation as a Cake Tool

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.  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. 
.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 (80)

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.

DotNetOpenAuth.Mvc5

Provides the HttpResponseMessage.AsActionResult() extension method.

GitHub repositories (29)

Showing the top 20 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
DotNetOpenAuth/DotNetOpenAuth
A C# implementation of the OpenID, OAuth protocols
xamarin/mobile-samples
dotnet/Nerdbank.GitVersioning
Stamp your assemblies, packages and more with a unique version generated from a single, simple version.json file and include git commit IDs for non-official builds.
pjvds/ncqrs
Ncqrs Framework - The CQRS Framework for .NET
xamarin/Xamarin.Auth
Xamarin.Auth
AArnott/CodeGeneration.Roslyn
Assists in performing Roslyn-based code generation during a build.
Azure/connectthedots
Connect tiny devices to Microsoft Azure services to build IoT solutions
Azure-Samples/MyDriving
Building IoT or Mobile solutions are fun and exciting. This year for Build, we wanted to show the amazing scenarios that can come together when these two are combined. So, we went and developed a sample application. MyDriving uses a wide range of Azure services to process and analyze car telemetry data for both real-time insights and long-term patterns and trends. The following features are supported in the current version of the mobile app.
Azure/diagnostics-eventflow
Microsoft Diagnostics EventFlow
adrianhall/develop-mobile-apps-with-csharp-and-azure
The Book Contents - Develop Mobile Apps with C# and Azure
xamarinhq/app-myshoppe
Cross-platform Xamarin.Forms sample for managing stores.
ffMathy/Shapeshifter
A clipboard manager for the 21st century.
redis/NRedisStack
Redis Stack .Net client
Azure/azure-iot-remote-monitoring
Azure IoT Remote Monitoring preconfigured solution
UiPath/Community.Activities
Repository of Windows Workflow Foundation Activities for UiPath Community
Version Downloads Last updated
2.6.68 55,908 12/20/2024
2.6.65-rc.2 149 12/20/2024
2.6.55-rc.1 151 12/20/2024
2.6.13-beta 31,818 12/25/2021
2.6.7-beta 669 10/1/2021
2.5.51 2,383,690 12/29/2021
2.5.42 501,869 7/5/2021
2.5.5-beta 24,198 9/25/2020
2.4.22 2,546,854 3/26/2019
2.4.18 36,164,392 10/31/2017
2.4.17 8,172 10/29/2017
2.4.15 2,769,393 3/15/2017
2.4.15-g8377954d86 7,680 3/15/2017
2.4.13 281,145 3/5/2017
2.4.10 14,008 2/25/2017
2.4.9 32,319 2/21/2017
2.4.7 10,510 2/17/2017
2.3.7 924,809 8/14/2016
2.3.5 46,349 7/30/2016
2.2.8 3,559,791 10/10/2015
2.2.5 9,030 10/8/2015
2.2.4 9,267 10/6/2015
2.0.6.15003 1,086,298 1/4/2015
2.0.5.14286 45,353 10/14/2014
2.0.4.14103 238,794 4/14/2014
2.0.3.13323 274,703 11/19/2013
2.0.2.13022 711,646 1/22/2013
2.0.1.12362 13,212 12/27/2012
2.0.0.12319 83,637 11/15/2012
1.0.0.12259 12,025 9/15/2012