MELT 2.0.0

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

MELT

Testing library for Microsoft.Extensions.Logging.

Install

Install version 2.0.0 of the MELT package shown on this NuGet page. For package selection and setup instructions, see the MELT documentation.

MELT v2 requires Microsoft.Extensions.Logging 10.0.0 or later (MELT.Serilog requires Serilog 4.2.0 and Serilog.Extensions.Logging 10.0.0 or later). Create a test logger factory, pass a logger to the system under test, then assert against the captured entries through loggerFactory.Sink.LogEntries.

Packages and compatibility

The core packages (MELT, MELT.Serilog, MELT.Xunit, and MELT.Xunit.v3) target netstandard2.0. MELT v2 actively supports .NET 10 and .NET 11. The ASP.NET Core helper packages target net10.0 and are validated on both .NET 10 and .NET 11.

Applications using Microsoft.Extensions versions earlier than 10.0 (including .NET 8/9 or classic .NET Framework applications pinned to older Extensions packages), Serilog 3.x, the legacy ASP.NET Core helper stack, or APIs removed in v2 should use the MELT 1.x legacy release line (latest: 1.1.0).

Documentation

Read the documentation for MELT 2.0.0.

For the latest documentation, visit alefranz.github.io/MELT.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on MELT:

Package Downloads
MELT.Xunit

xUnit helper for the MELT testing library to verify that the correct logs are generated by apps or libraries using the .NET Standard Microsoft.Extensions.Logging library.

MELT.AspNetCore

Helper for the MELT testing library to verify that the correct logs are generated by ASP.NET Core applications, when writing integration tests with Microsoft.AspNetCore.Mvc.Testing.

MELT.Serilog

Testing library to verify that the correct logs are generated by apps or libraries using the .NET Standard Microsoft.Extensions.Logging library with Serilog as provider.

MELT.Xunit.v3

xUnit helper for the MELT testing library to verify that the correct logs are generated by apps or libraries using the .NET Standard Microsoft.Extensions.Logging library.

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on MELT:

Repository Stars
quartznet/quartznet
Quartz Enterprise Scheduler .NET
dotnet/aspnet-api-versioning
Provides a set of libraries which add service API versioning to ASP.NET Core Minimal APIs, Controllers, gRPC, OData, and Web API (Classic).
Mongo2Go/Mongo2Go
Mongo2Go - MongoDB for .NET integration tests
imazen/imageflow-server
A super-fast image server to speed up your site - deploy as a microservice, serverless, or embeddable.
Version Downloads Last Updated
2.0.0 133 11/21/2026
1.1.0 448,982 9/21/2025
1.1.0-preview.1 413 9/19/2025
1.0.0 175,197 5/27/2025
1.0.0-rc.2 309 5/18/2025
1.0.0-rc.1 252 5/18/2025
0.9.0 1,481,818 8/6/2023
0.8.0 1,047,151 4/26/2021
0.7.0 117,006 2/21/2021
0.6.0 58,180 11/7/2020
0.6.0-preview.1 477 10/16/2020
0.5.3 107,277 8/31/2020
0.5.2 2,448 8/30/2020
0.5.1 2,344 8/30/2020
0.5.0 3,680 8/24/2020
0.4.0 28,468 2/18/2020
0.3.0 21,628 11/24/2019
0.2.0 1,670 11/3/2019
0.1.0 14,807 10/26/2019