Microsoft.VisualStudio.Validation 17.0.65

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.VisualStudio.Validation --version 17.0.65
NuGet\Install-Package Microsoft.VisualStudio.Validation -Version 17.0.65
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="Microsoft.VisualStudio.Validation" Version="17.0.65" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.VisualStudio.Validation --version 17.0.65
#r "nuget: Microsoft.VisualStudio.Validation, 17.0.65"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.VisualStudio.Validation as a Cake Addin
#addin nuget:?package=Microsoft.VisualStudio.Validation&version=17.0.65

// Install Microsoft.VisualStudio.Validation as a Cake Tool
#tool nuget:?package=Microsoft.VisualStudio.Validation&version=17.0.65


NuGet package Build Status codecov

This project is available as the Microsoft.VisualStudio.Validation NuGet package.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1, nameof(arg1));
Requires.NotNullOrEmpty(arg2, nameof(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 Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (50)

Showing the top 5 NuGet packages that depend on Microsoft.VisualStudio.Validation:

Package Downloads
Microsoft.VisualStudio.Threading The ID prefix of this package has been reserved for one of the owners of this package by

Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).


PCL Crypto provides a consistent, portable set of crypto APIs for .NET 4.5, Windows Store, Xamarin.iOS, Xamarin.Android. This makes it easier to create cross-platform .NET libraries and apps. Crypto functionality includes asymmetric and symmetric encryption and signatures, and key derivation. PCLCrypto calls into each native platform's crypto API for maximum performance. For RSA operations this produces a 2-100X improvement in performance on Android and iOS over using the standard RSACryptoServiceProvider API.

Microsoft.VisualStudio.Composition The ID prefix of this package has been reserved for one of the owners of this package by

Lightning fast MEF engine, supporting System.ComponentModel.Composition and System.Composition.

Microsoft.VisualStudio.Imaging The ID prefix of this package has been reserved for one of the owners of this package by

A member of the Visual Studio SDK


Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.

GitHub repositories (68)

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

Repository Stars
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
Stride Game Engine (formerly Xenko)
Pure C# IL Intepreter Runtime, which is fast and reliable for scripting requirement on enviorments, where jitting isn't possible.
Sandcastle Help File Builder (SHFB). A standalone GUI, Visual Studio integration package, and MSBuild tasks providing full configuration and extensibility for building help files with the Sandcastle tools.
Version Downloads Last updated
17.6.4-alpha 97 1/27/2023
17.0.65 3,928 1/5/2023
17.0.64 206,025 8/9/2022
17.0.53 329,430 5/6/2022
17.0.50 340 5/10/2022
17.0.46 18,615 4/27/2022
17.0.43 509,345 2/17/2022
17.0.42 631 2/17/2022
17.0.34 141,653 10/8/2021
17.0.28 176,982 11/8/2021
17.0.25-alpha 76,295 9/20/2021
17.0.21-alpha 9,377 8/11/2021
17.0.16-alpha 69,290 7/19/2021
17.0.12-alpha 22,137 6/1/2021
17.0.11-alpha 42,714 5/17/2021
16.10.35 493,936 9/23/2021
16.10.34 62,455 7/19/2021
16.10.26 329,337 6/1/2021
16.9.32 811,464 3/11/2021
16.9.28 54,027 3/3/2021
16.9.27-alpha 753 1/15/2021
16.8.33 1,128,174 10/23/2020
15.5.31 3,933,576 8/19/2019
15.5.3 12,529 7/23/2019
15.3.58 843,402 6/15/2018
15.3.53 13,949 4/20/2018
15.3.32 292,422 8/21/2017
15.3.23 189,598 7/21/2017
15.3.15 3,555,738 5/3/2017
15.0.82 2,588,719 1/30/2017
15.0.75 3,524 1/15/2017
15.0.67 1,322 1/27/2017
15.0.55-pre 149,417 10/13/2016
15.0.11-pre 186,531 3/24/2016
14.1.111 760,118 11/7/2015
14.0.51103 6,054 11/7/2015
14.0.50702 252,537 7/20/2015
14.0.50417-pre 8,015 4/29/2015
12.0.0 24,063 12/17/2015