Metalama.Extensions.CodeFixes 2026.0.12

Prefix Reserved
dotnet add package Metalama.Extensions.CodeFixes --version 2026.0.12
                    
NuGet\Install-Package Metalama.Extensions.CodeFixes -Version 2026.0.12
                    
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="2026.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Extensions.CodeFixes" Version="2026.0.12" />
                    
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 2026.0.12
                    
#r "nuget: Metalama.Extensions.CodeFixes, 2026.0.12"
                    
#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 Metalama.Extensions.CodeFixes@2026.0.12
                    
#: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=Metalama.Extensions.CodeFixes&version=2026.0.12
                    
Install as a Cake Addin
#tool nuget:?package=Metalama.Extensions.CodeFixes&version=2026.0.12
                    
Install 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
2026.0.12 39 1/9/2026
2026.0.11 87 1/5/2026
2026.0.10-rc 225 12/19/2025
2026.0.9-rc 112 12/12/2025
2026.0.7-rc 184 12/4/2025
2026.0.6-rc 114 11/28/2025
2026.0.5-preview 269 11/12/2025
2026.0.4-preview 101 11/8/2025
2026.0.3-preview 175 10/30/2025
2026.0.2-preview 165 10/7/2025
2026.0.1-preview 105 10/4/2025
2025.2.5-rc 164 10/7/2025
2025.2.4-rc 171 10/1/2025
2025.2.2-preview 244 9/19/2025
2025.2.1-preview 158 9/9/2025
2025.1.17 440 12/9/2025
2025.1.16 194 10/22/2025
2025.1.15 174 10/7/2025
2025.1.14 179 9/30/2025
2025.1.13 192 9/5/2025
2025.1.12 263 8/7/2025
2025.1.11 560 7/23/2025
2025.1.10 220 7/3/2025
2025.1.9 243 5/29/2025
2025.1.8 222 5/26/2025
2025.1.7 193 5/22/2025
2025.1.6 320 5/15/2025
2025.1.5 189 5/2/2025
2025.1.4-rc 231 4/15/2025
2025.1.3-rc 226 4/9/2025
2025.1.2-preview 196 4/1/2025
2025.1.1-preview 185 3/18/2025