Skip to main content
.NETFramework4.7.2net8.0net9.0

Optional plugin for Metalama that provides HTML code formatting with diff support. Reference this package to enable HTML output generation for documentation and debugging purposes.

Published
May 15, 2026
5mo ago
Total Downloads
5.1K
5,081

Install

dotnet add package Metalama.Extensions.HtmlWriter --version 2026.1.15-rc
ProductVersions
.NET
net8.0net9.0
Other
.NETFramework4.7.2

README

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.

Changes from Previous Version

No structural changes between v2026.1.14-rc and v2026.1.15-rc.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.