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" />
<PackageReference Include="Metalama.Extensions.CodeFixes" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Metalama.Extensions.CodeFixes&version=2025.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
extendsIDiagnostic
and attaches aCodeFix
to a reported diagnostic.Suggest
extendsIDiagnosticSink
andIScopedDiagnosticSink
and allows to suggest a refactoring without reporting a diagnostic.
- CodeFixFactory allows to create simple code fixes, such as
AddAttribute
,RemoveAttributes
orChangeAccessibility
.
Documentation
API Documentation: Metalama.Extensions.CodeFixes
Conceptual Documentation: Building IDE interactions
Related Packages
- Metalama.Extensions.CodeFixes.Redist: the redistributable package that does not cause referencing projects to use Metalama.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Metalama.Extensions.CodeFixes.Redist (>= 2025.1.9)
- Metalama.Framework (>= 2025.1.9)
- Metalama.Licensing (>= 2025.1.9)
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 |