Metalama.Extensions.CodeFixes 2025.2.1-preview

Prefix Reserved
This is a prerelease version of Metalama.Extensions.CodeFixes.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Metalama.Extensions.CodeFixes --version 2025.2.1-preview
                    
NuGet\Install-Package Metalama.Extensions.CodeFixes -Version 2025.2.1-preview
                    
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.2.1-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Extensions.CodeFixes" Version="2025.2.1-preview" />
                    
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.2.1-preview
                    
#r "nuget: Metalama.Extensions.CodeFixes, 2025.2.1-preview"
                    
#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@2025.2.1-preview
                    
#: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=2025.2.1-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Metalama.Extensions.CodeFixes&version=2025.2.1-preview&prerelease
                    
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.1.0-preview 33 2/1/2026
2026.0.16 93 1/24/2026
2026.0.15 99 1/14/2026
2026.0.14 86 1/13/2026
2026.0.13 85 1/12/2026
2026.0.12 94 1/9/2026
2026.0.11 94 1/5/2026
2026.0.10-rc 228 12/19/2025
2026.0.9-rc 115 12/12/2025
2026.0.7-rc 187 12/4/2025
2026.0.6-rc 115 11/28/2025
2026.0.5-preview 272 11/12/2025
2026.0.4-preview 105 11/8/2025
2026.0.3-preview 177 10/30/2025
2026.0.2-preview 169 10/7/2025
2026.0.1-preview 107 10/4/2025
2025.2.5-rc 166 10/7/2025
2025.2.4-rc 177 10/1/2025
2025.2.2-preview 247 9/19/2025
2025.2.1-preview 160 9/9/2025
2025.1.17 443 12/9/2025
2025.1.16 198 10/22/2025
2025.1.15 179 10/7/2025
2025.1.14 180 9/30/2025
2025.1.13 193 9/5/2025
2025.1.12 265 8/7/2025
2025.1.11 561 7/23/2025
2025.1.10 221 7/3/2025
2025.1.9 250 5/29/2025
2025.1.8 226 5/26/2025
2025.1.7 194 5/22/2025
2025.1.6 327 5/15/2025
2025.1.5 190 5/2/2025
2025.1.4-rc 232 4/15/2025
2025.1.3-rc 228 4/9/2025
2025.1.2-preview 198 4/1/2025
2025.1.1-preview 188 3/18/2025