Metalama.Extensions.HtmlWriter 2026.1.0-preview

Prefix Reserved
This is a prerelease version of Metalama.Extensions.HtmlWriter.
dotnet add package Metalama.Extensions.HtmlWriter --version 2026.1.0-preview
                    
NuGet\Install-Package Metalama.Extensions.HtmlWriter -Version 2026.1.0-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.HtmlWriter" Version="2026.1.0-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Extensions.HtmlWriter" Version="2026.1.0-preview" />
                    
Directory.Packages.props
<PackageReference Include="Metalama.Extensions.HtmlWriter" />
                    
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.HtmlWriter --version 2026.1.0-preview
                    
#r "nuget: Metalama.Extensions.HtmlWriter, 2026.1.0-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.HtmlWriter@2026.1.0-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.HtmlWriter&version=2026.1.0-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Metalama.Extensions.HtmlWriter&version=2026.1.0-preview&prerelease
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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 31 2/1/2026