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
<PackageReference Include="dlebansais.IDisposableAnalyzers" Version="4.0.8.17"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="dlebansais.IDisposableAnalyzers" Version="4.0.8.17" />
<PackageReference Include="dlebansais.IDisposableAnalyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add dlebansais.IDisposableAnalyzers --version 4.0.8.17
#r "nuget: dlebansais.IDisposableAnalyzers, 4.0.8.17"
#:package dlebansais.IDisposableAnalyzers@4.0.8.17
#addin nuget:?package=dlebansais.IDisposableAnalyzers&version=4.0.8.17
#tool nuget:?package=dlebansais.IDisposableAnalyzers&version=4.0.8.17
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:
- Close visual studio.
- Edit the ProjectName.rulset file and remove the IDisposableAnalyzers element.
- 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.
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 |