Metalama.Extensions.HtmlWriter
2026.1.0-preview
Prefix Reserved
dotnet add package Metalama.Extensions.HtmlWriter --version 2026.1.0-preview
NuGet\Install-Package Metalama.Extensions.HtmlWriter -Version 2026.1.0-preview
<PackageReference Include="Metalama.Extensions.HtmlWriter" Version="2026.1.0-preview" />
<PackageVersion Include="Metalama.Extensions.HtmlWriter" Version="2026.1.0-preview" />
<PackageReference Include="Metalama.Extensions.HtmlWriter" />
paket add Metalama.Extensions.HtmlWriter --version 2026.1.0-preview
#r "nuget: Metalama.Extensions.HtmlWriter, 2026.1.0-preview"
#:package Metalama.Extensions.HtmlWriter@2026.1.0-preview
#addin nuget:?package=Metalama.Extensions.HtmlWriter&version=2026.1.0-preview&prerelease
#tool nuget:?package=Metalama.Extensions.HtmlWriter&version=2026.1.0-preview&prerelease
Metalama.Extensions.HtmlWriter
This package provides optional HTML code writing functionality for Metalama.
Installation
Add a reference to this package in your project:
<PackageReference Include="Metalama.Extensions.HtmlWriter" />
Features
When this package is referenced, Metalama can generate HTML output files showing the source code with syntax highlighting and diff visualization. This is useful for:
- Documentation generation
- Debugging aspect transformations
- Visualizing compile-time vs run-time code
Usage
Compile-time Pipeline
Enable HTML output in your project by setting the WriteHtml MSBuild property:
<PropertyGroup>
<MetalamaWriteHtml>true</MetalamaWriteHtml>
</PropertyGroup>
Aspect Tests
Enable HTML output in aspect tests by adding a metalamaTests.json file to your test project:
{
"WriteInputHtml": true,
"WriteOutputHtml": true
}
Without this package, the WriteHtml feature and related test options will throw an error with a message indicating that the package needs to be installed.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Metalama.Framework.Sdk (>= 2026.1.0-preview)
- Metalama.Testing.AspectTesting (>= 2026.1.0-preview)
-
net8.0
- Metalama.Framework.Sdk (>= 2026.1.0-preview)
- Metalama.Testing.AspectTesting (>= 2026.1.0-preview)
-
net9.0
- Metalama.Framework.Sdk (>= 2026.1.0-preview)
- Metalama.Testing.AspectTesting (>= 2026.1.0-preview)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Metalama.Extensions.HtmlWriter:
| Package | Downloads |
|---|---|
|
Metalama.Documentation.QuickStart
Contains trivial aspects used in Metalama's getting started documentation. Do not use in production code. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.1.0-preview | 47 | 2/1/2026 |