serilog / serilog-aspnetcore

Serilog integration for ASP.NET Core
Apache License 2.0
1.32k stars 209 forks source link

serilog-aspnetcore v7 .net6 requires v7 Microsoft.Extensions.Logging pkg #350

Closed Havunen closed 1 year ago

Havunen commented 1 year ago

Serilog.AspNetCore v7 requires Microsoft.Extensions.Logging v7 nuget package. This is problem because having v7 version of Microsoft.Extensions in azure function app in .NET 6 app forces the function app to be hosted in isolated hosting process. https://github.com/Azure/azure-functions-host/issues/8984#issuecomment-1571075265

See ref: https://www.nuget.org/packages/Serilog.AspNetCore/7.0.0#dependencies-body-tab

expected result: Serilog.AspNetCore targetFramework .net6 requires >= 6.0 version of Microsoft.Extensions.Logging nuget package. and .net7 requires >= 7.0 version of the same package and so on.

Havunen commented 1 year ago

This project seems to depend here: https://github.com/serilog/serilog-extensions-logging/issues/229