Repository navigation
MELT 2.0.0
Breaking support-policy change
MELT v2 targets the actively supported .NET platform:
- Minimum actively supported runtime: .NET 10 (LTS), with validation on
both .NET 10 and .NET 11 (STS). Following the
.NET support policy,
.NET 8 and .NET 9 reached end of support on November 10, 2026 and are not
actively supported by MELT v2. - Core packages (
MELT,MELT.Serilog,MELT.Xunit,MELT.Xunit.v3):
Retainnetstandard2.0and raise the minimumMicrosoft.Extensions.*
dependency floor (Microsoft.Extensions.DependencyInjection,
Microsoft.Extensions.Logging, and
Microsoft.Extensions.Logging.Abstractions) to10.0.0. - Serilog integration (
MELT.Serilog): RaisesSerilog.Extensions.Logging
to10.0.0andSerilogto4.2.0. - ASP.NET Core helpers (
MELT.AspNetCore,MELT.Serilog.AspNetCore):
Targetnet10.0withMicrosoft.AspNetCore.Mvc.Testing10.0.0(validated
for both .NET 10 and .NET 11 applications) and remove the legacy ASP.NET Core
2.1 helper stack. - xUnit v3/v4 support (
MELT.Xunit.v3): Usesxunit.v3.assert3.0.0
as its minimum dependency and is validated with xUnit.net v3 framework
versions 3.x and 4.x.
Consumers pinned to earlier Microsoft.Extensions versions (including .NET 8/9
or classic .NET Framework applications on older Extensions packages), Serilog
3.x, or the legacy ASP.NET Core 2.1 helper stack should remain on the MELT 1.x
legacy release line (latest: 1.1.0). Because the v2 core packages still
target netstandard2.0, an unsupported runtime (.NET 8, .NET 9, or .NET
Framework 4.7.2+) is not necessarily technically incompatible if it can use
Microsoft.Extensions 10.0.0 or later, though it is outside active support
and CI coverage. By contrast, MELT.AspNetCore and MELT.Serilog.AspNetCore
target net10.0 and strictly require .NET 10 or later.
Breaking API changes and removals
MELT v2 removes all APIs previously marked [Obsolete] in 1.x, renames the
Serilog TryGet accessor for consistency, updates repeated builder
registration semantics, and consolidates log capture around a single internal
sink store (ITestLoggerSink / ISerilogTestLoggerSink):
- Removed the legacy sink model (
ITestSink,IInternalTestSink,TestSink,
WriteContext,BeginScopeContext, andMELTBuilder). - Removed
TestLogger(string, ITestSink)(constructor is now internal; use
TestLoggerFactory.Create(...)ornew TestLoggerProvider().CreateLogger(string)). - Removed factory, builder, provider, and ASP.NET Core compatibility APIs
(TestLoggerFactory(ITestSink),TestLoggerFactory.LogEntries/Scopes,
ITestLoggerFactory.LogEntries/Scopes,TestLoggerProvider._sink,
TestLoggerProvider(ITestSink),AddTestLogger(...),
UseTestLogging(IWebHostBuilder, ITestSink),TryGetTestSink, and
GetTestSink). - Removed singular/legacy entry aliases (
LogEntry.Format,LogEntry.Scope,
SerilogLogEntry(WriteContext), andSerilogLogEntry.Scope). - Removed
MELT.Xunit.LogValuesAssertin favor ofXunit.LoggingAssert. - Renamed
MELTSerilogWebApplicationFactoryExtensions.TryGetTestLoggerSink(...)
toTryGetSerilogTestLoggerSink(...)to matchGetSerilogTestLoggerSink()
and avoid ambiguity withMELTWebApplicationFactoryExtensions.TryGetTestLoggerSink(...). - Changed repeated logger registration semantics: repeated calls to
AddTest(...)/AddSerilogTest(...)(andUseTestLogging(...)/
UseSerilogTestLogging(...)) now replace any previously registered MELT
TestLoggerProviderand sink so the latest configuration wins instead of
leaving multiple provider registrations. - Removed the legacy sample projects under
samples/legacy/and the
.NET 8/.NET 9 compatibility sample projects.
See Migrate to MELT v2 for the two-stage upgrade guide and
complete removed-API mapping table.