Metalama.Extensions.CodeFixes 2025.1.9

Prefix Reserved
dotnet add package Metalama.Extensions.CodeFixes --version 2025.1.9
                    
NuGet\Install-Package Metalama.Extensions.CodeFixes -Version 2025.1.9
                    
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="Metalama.Extensions.CodeFixes" Version="2025.1.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Extensions.CodeFixes" Version="2025.1.9" />
                    
Directory.Packages.props
<PackageReference Include="Metalama.Extensions.CodeFixes" />
                    
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 Metalama.Extensions.CodeFixes --version 2025.1.9
                    
#r "nuget: Metalama.Extensions.CodeFixes, 2025.1.9"
                    
#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.
#addin nuget:?package=Metalama.Extensions.CodeFixes&version=2025.1.9
                    
Install Metalama.Extensions.CodeFixes as a Cake Addin
#tool nuget:?package=Metalama.Extensions.CodeFixes&version=2025.1.9
                    
Install Metalama.Extensions.CodeFixes as a Cake Tool

Metalama Logo

About

The Metalama.Extensions.CodeFixes extends Metalama.Framework with APIs that allow to suggest code fixes when reporting errors or warnings, or to suggest refactorings even without a warning.

Features

  • Attach code fix suggestions to reported diagnostics.
  • Suggest a code refactoring without reporting a diagnostic.
  • Apply any Metalama.Framework aspect as a code fix or refactoring (aka live template).
  • Simple code fixes: add/remove attribute, change accessibility.

License

This package is a commercial extension of the open-source Metalama.Framework and requires a Metalama Professional license.

Principal Types

  • CodeFixExtensions provides the following extension methods:
    • WithCodeFixes extends IDiagnostic and attaches a CodeFix to a reported diagnostic.
    • Suggest extends IDiagnosticSink and IScopedDiagnosticSink and allows to suggest a refactoring without reporting a diagnostic.
  • CodeFixFactory allows to create simple code fixes, such as AddAttribute, RemoveAttributes or ChangeAccessibility.

Documentation

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
2025.1.9 151 5/29/2025
2025.1.8 144 5/26/2025
2025.1.7 142 5/22/2025
2025.1.6 230 5/15/2025
2025.1.5 127 5/2/2025
2025.1.4-rc 188 4/15/2025
2025.1.3-rc 180 4/9/2025
2025.1.2-preview 150 4/1/2025
2025.1.1-preview 137 3/18/2025