Microsoft.VisualStudio.Validation 17.0.64

.NET Standard 2.0
NuGet\Install-Package Microsoft.VisualStudio.Validation -Version 17.0.64
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.
dotnet add package Microsoft.VisualStudio.Validation --version 17.0.64
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="17.0.64" />
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.64
#r "nuget: Microsoft.VisualStudio.Validation, 17.0.64"
#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.64

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

Microsoft.VisualStudio.Validation

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
.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 NuGet.org.

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

PCLCrypto

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 NuGet.org.

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 NuGet.org.

A member of the Visual Studio SDK

Nerdbank.Streams

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

GitHub repositories (64)

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

Repository Stars
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
unoplatform/uno
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
stride3d/stride
Stride Game Engine (formerly Xenko)
Ourpalm/ILRuntime
Pure C# IL Intepreter Runtime, which is fast and reliable for scripting requirement on enviorments, where jitting isn't possible.
EWSoftware/SHFB
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.0.64 18,485 8/9/2022
17.0.53 188,728 5/6/2022
17.0.50 172 5/10/2022
17.0.46 12,231 4/27/2022
17.0.43 325,459 2/17/2022
17.0.42 333 2/17/2022
17.0.34 123,851 10/8/2021
17.0.28 126,929 11/8/2021
17.0.25-alpha 55,864 9/20/2021
17.0.21-alpha 8,615 8/11/2021
17.0.16-alpha 44,321 7/19/2021
17.0.12-alpha 21,019 6/1/2021
17.0.11-alpha 40,842 5/17/2021
16.10.35 410,786 9/23/2021
16.10.34 57,834 7/19/2021
16.10.26 188,950 6/1/2021
16.9.32 666,512 3/11/2021
16.9.28 43,319 3/3/2021
16.9.27-alpha 734 1/15/2021
16.8.33 984,048 10/23/2020
15.5.31 3,458,725 8/19/2019
15.5.3 12,048 7/23/2019
15.3.58 801,760 6/15/2018
15.3.53 13,597 4/20/2018
15.3.32 289,549 8/21/2017
15.3.23 189,466 7/21/2017
15.3.15 3,295,407 5/3/2017
15.0.82 2,200,772 1/30/2017
15.0.75 3,426 1/15/2017
15.0.67 1,234 1/27/2017
15.0.55-pre 149,235 10/13/2016
15.0.11-pre 186,326 3/24/2016
14.1.111 747,763 11/7/2015
14.0.51103 5,756 11/7/2015
14.0.50702 249,733 7/20/2015
14.0.50417-pre 7,982 4/29/2015
12.0.0 22,139 12/17/2015