JetBrains.Annotations.Sources 2025.2.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package JetBrains.Annotations.Sources --version 2025.2.1
                    
NuGet\Install-Package JetBrains.Annotations.Sources -Version 2025.2.1
                    
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="JetBrains.Annotations.Sources" Version="2025.2.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JetBrains.Annotations.Sources" Version="2025.2.1" />
                    
Directory.Packages.props
<PackageReference Include="JetBrains.Annotations.Sources">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 JetBrains.Annotations.Sources --version 2025.2.1
                    
#r "nuget: JetBrains.Annotations.Sources, 2025.2.1"
                    
#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.
#:package JetBrains.Annotations.Sources@2025.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JetBrains.Annotations.Sources&version=2025.2.1
                    
Install as a Cake Addin
#tool nuget:?package=JetBrains.Annotations.Sources&version=2025.2.1
                    
Install as a Cake Tool

JetBrains ReSharper Annotations

ReSharper Annotations help reduce false positive warnings, explicitly declare purity and nullability in your code, deal with implicit usages of types and members, support special semantics of the APIs in ASP.NET and XAML frameworks and otherwise increase the accuracy of the code inspections in JetBrains .NET IDEs.

alternate text is missing from this package README image

Available on nuget.org as an ordinary compiled nuget package and a source-code only package.

official JetBrains project

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on JetBrains.Annotations.Sources:

Repository Stars
JustArchiNET/ArchiSteamFarm
C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
JetBrains/resharper-unity
Unity support for both ReSharper and Rider
CatPoweredPlugins/ASFAchievementManager
Achievement Manager for ASF
MDModsDev/MuseDashModTools
UI app made by Avalonia framework for Muse Dash Mods
Version Downloads Last Updated
2025.2.2 2,164 9/1/2025
2025.2.1 2,256 8/28/2025
2025.2.0 16,424 7/22/2025

• `[Conditional("JETBRAINS_ANNOTATIONS")]` attribute was removed from all annotation types, so the assembly reference to `JetBrains.Annotation.dll` is no longer automatically removed by the C# compiler. You can no longer safely use `PrivateAssets="All"` for package reference to `JetBrains.Annotations`. Consider migration to `JetBrains.Annotations.Sources` package if the dependency removal is important for you.
• New `JetBrains.Annotations.Sources` package introduced as an alternative way to embed JetBrains.Annotations into your projects without package dependency.
• Added `DefaultEqualityUsageAttribute` for equality members usage analysis.
• `MustDisposeResourceAttribute` is now allowed on struct types.
• Added the ability to specify the description for UsedImplicitlyAttribute (new 'Reason' property).
• Added `CqrsCommandAttribute`, `CqrsQueryAttribute`, `CqrsCommandHandlerAttribute`, `CqrsQueryHandlerAttribute` and `CqrsExcludeFromAnalysisAttribute` to support CQRS analyzes of naming and adherence to the pattern.
• Package icon update.