System.Diagnostics.Contracts 4.3.0

Prefix Reserved

Requires NuGet 2.12 or higher.

dotnet add package System.Diagnostics.Contracts --version 4.3.0                
NuGet\Install-Package System.Diagnostics.Contracts -Version 4.3.0                
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="System.Diagnostics.Contracts" Version="4.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Diagnostics.Contracts --version 4.3.0                
#r "nuget: System.Diagnostics.Contracts, 4.3.0"                
#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 System.Diagnostics.Contracts as a Cake Addin
#addin nuget:?package=System.Diagnostics.Contracts&version=4.3.0

// Install System.Diagnostics.Contracts as a Cake Tool
#tool nuget:?package=System.Diagnostics.Contracts&version=4.3.0                

Provides static classes for representing program contracts such as preconditions, postconditions, and invariants.

Commonly Used Types:
System.Diagnostics.Contracts.Contract
System.Diagnostics.Contracts.ContractClassAttribute
System.Diagnostics.Contracts.ContractClassForAttribute
System.Diagnostics.Contracts.ContractFailureKind
System.Runtime.CompilerServices.ContractHelper
System.Diagnostics.Contracts.ContractInvariantMethodAttribute
System.Diagnostics.Contracts.PureAttribute
System.Diagnostics.Contracts.ContractArgumentValidatorAttribute
System.Diagnostics.Contracts.ContractVerificationAttribute
System.Diagnostics.Contracts.ContractOptionAttribute

When using NuGet 3.x this package requires at least version 3.4.

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 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed.  monotouch10 is compatible. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform netcore50 is compatible.  uap was computed.  uap10.0 was computed. 
Windows Phone wp8 is compatible.  wp81 was computed.  wpa81 is compatible. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed.  win8 is compatible. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed.  xamarinmac20 is compatible. 
Xamarin.TVOS xamarintvos was computed.  xamarintvos10 is compatible. 
Xamarin.WatchOS xamarinwatchos was computed.  xamarinwatchos10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCore 5.0

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

  • MonoAndroid 1.0

    • No dependencies.
  • MonoTouch 1.0

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.
  • Windows 8.0

    • No dependencies.
  • WindowsPhone 8.0

    • No dependencies.
  • WindowsPhoneApp 8.1

    • No dependencies.
  • Xamarin.iOS 1.0

    • No dependencies.
  • Xamarin.Mac 2.0

    • No dependencies.
  • Xamarin.TVOS 1.0

    • No dependencies.
  • Xamarin.WatchOS 1.0

    • No dependencies.

NuGet packages (193)

Showing the top 5 NuGet packages that depend on System.Diagnostics.Contracts:

Package Downloads
System.Reflection.TypeExtensions

Provides extensions methods for System.Type that are designed to be source-compatible with older framework reflection-based APIs. Commonly Used Types: System.Reflection.TypeExtensions System.Reflection.BindingFlags When using NuGet 3.x this package requires at least version 3.4.

Microsoft.AspNet.WebApi.Client

This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data.

Handlebars.Net

Blistering-fast Handlebars.js templates in your .NET application.

MsgPack.Cli

MessagePack is fast, compact, and interoperable binary serialization format. This package provides MessagePack serialization/deserialization APIs. This pacakge also supports Mono, Xamarin, .NET Core and Unity.

Microsoft.NETCore.UniversalWindowsPlatform

Provides a set of packages that can be used when building Universal Windows applications on .NETCore. d67bd83a075b8b10cb95810568073c1a3211f28b When using NuGet 3.x this package requires at least version 3.4.

GitHub repositories (42)

Showing the top 5 popular GitHub repositories that depend on System.Diagnostics.Contracts:

Repository Stars
reactiveui/ReactiveUI
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
fanliang11/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
neuecc/ZeroFormatter
Infinitely Fast Deserializer for .NET, .NET Core and Unity.
chocolatey/ChocolateyGUI
A delicious GUI for Chocolatey
dotnet/corefxlab
This repo is for experimentation and exploring new ideas that may or may not make it into the main corefx repo.
Version Downloads Last updated
4.3.0 170,756,746 11/15/2016
4.3.0-preview1-24530-04 263,508 10/24/2016
4.0.1 193,215,207 6/27/2016
4.0.1-rc2-24027 3,036,035 5/16/2016
4.0.1-beta-23516 367,701 11/18/2015
4.0.1-beta-23409 374,103 10/15/2015
4.0.1-beta-23225 54,757 9/1/2015
4.0.0 1,574,691 7/29/2015
4.0.0-beta-23109 46,180 7/27/2015
4.0.0-beta-23019 45,694 6/30/2015
4.0.0-beta-22816 53,556 4/24/2015
4.0.0-beta-22605 20,042 2/13/2015
4.0.0-beta-22416 10,309 1/16/2015
4.0.0-beta-22231 27,437 11/11/2014