Skip to main content
JetBrains.Annotations package icon

JetBrains.Annotations

JetBrains.Annotations help reduce false positive warnings, explicitly declare purity and nullability in your code, deal with implicit usages of members, support special semantics of APIs in ASP.NET and XAML frameworks and otherwise increase accuracy of JetBrains Rider and ReSharper code inspections. All usages of JetBrains.Annotations attributes are erased from metadata by default, which means no actual binary reference to 'JetBrains.Annotations.dll' assembly is produced. If you need to preserve these attributes in metadata, just define 'JETBRAINS_ANNOTATIONS' conditional compilation symbol in your projects.

Total Downloads
483.8M
483,765,917
Published
Nov 7, 2022
Latest stable version

Install

.NET CLI
dotnet add package JetBrains.Annotations --version 2022.3.1
Package Manager Console
Install-Package JetBrains.Annotations -Version 2022.3.1
PackageReference
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" />

Frameworks

.NETFramework2.0 .NETPortable4.0-Profile328 .NETStandard1.0 .NETStandard2.0

Dependencies

System.Runtime
.NETStandard1.0
[4.1.0, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.