dlebansais.IDisposableAnalyzers 4.0.8.17

dotnet add package dlebansais.IDisposableAnalyzers --version 4.0.8.17
                    
NuGet\Install-Package dlebansais.IDisposableAnalyzers -Version 4.0.8.17
                    
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="dlebansais.IDisposableAnalyzers" Version="4.0.8.17">
  <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="dlebansais.IDisposableAnalyzers" Version="4.0.8.17" />
                    
Directory.Packages.props
<PackageReference Include="dlebansais.IDisposableAnalyzers">
  <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 dlebansais.IDisposableAnalyzers --version 4.0.8.17
                    
#r "nuget: dlebansais.IDisposableAnalyzers, 4.0.8.17"
                    
#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 dlebansais.IDisposableAnalyzers@4.0.8.17
                    
#: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=dlebansais.IDisposableAnalyzers&version=4.0.8.17
                    
Install as a Cake Addin
#tool nuget:?package=dlebansais.IDisposableAnalyzers&version=4.0.8.17
                    
Install as a Cake Tool

IDisposableAnalyzers

Roslyn analyzers for IDisposable.

Using IDisposableAnalyzers

The preferable way to use the analyzers is to add the nuget package IDisposableAnalyzers to the project(s).

The severity of individual rules may be configured using rule set files in Visual Studio 2015.

Installation

IDisposableAnalyzers can be installed using:

  • Paket
  • NuGet command line
  • NuGet Package Manager in Visual Studio.

Install using the command line:

paket add dlebansais.IDisposableAnalyzers --project <project>

or if you prefer NuGet

Install-Package dlebansais.IDisposableAnalyzers

Updating

The ruleset editor does not handle changed IDs well, if things get out of sync you can try:

  1. Close visual studio.
  2. Edit the ProjectName.rulset file and remove the IDisposableAnalyzers element.
  3. Start visual studio and add back the desired configuration.

Above is not ideal, sorry about this. Not sure if this is our bug.

Current status

Early alpha, finds bugs in the code but there are also bugs in the analyzer. The analyzer will probably never be perfect as it is a pretty hard problem to solve but we can improve it one test case at the time. Write issues for places where it should warn but does not or where it warns where there is no bug.

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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.8.17 4,988 8/16/2025
4.0.8.16 384 6/23/2025
4.0.8.15 209 6/18/2025
4.0.8.14 207 6/18/2025
4.0.8.13 205 6/16/2025
4.0.8.12 193 6/15/2025
4.0.8.11 205 6/15/2025
4.0.8.10 351 6/8/2025
4.0.8.9 256 6/7/2025
4.0.8.8 204 6/3/2025
4.0.8.7 215 6/1/2025
4.0.8.6 208 6/1/2025
4.0.8.5 160 5/30/2025
4.0.8.4 165 5/30/2025
4.0.8.3 164 5/30/2025
4.0.8.2 150 5/30/2025
4.0.8.1 152 5/30/2025
4.0.8 216 5/29/2025