dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.98k stars 4.66k forks source link

Any chance to support Microsoft.Extensions.Logging on .NET Framework 4.5.2? #56539

Closed Snipx closed 3 years ago

Snipx commented 3 years ago

Hi, thanks for all your hard work! I've been wondering about the possibility to support Microsoft.Extensions.Logging on .NET Framework 4.5.2 - would it be possible and is it planned? I see that version 4.5.2 is still supported till April 26, 2022. We are building a .NET library and we aim to support .NET Framework versions that Microsoft still officially supports and we want to migrate to Microsoft.Extensions.Logging but the fact that it's only available from .NET Framework 4.6.1 is a big hurdle now.

Any thoughts on this? Thanks a lot!

teo-tsirpanis commented 3 years ago

Hello, judging from dotnet/announcements#190, supporting .NET Framework 4.5.2 is pretty unlikely.

A supported framework does not necessarily mean that people should write new code targeting it, otherwise most libraries would still target .NET Framework 3.5 which is supported until 2028. And April 2022 is not a long time; it's less than a year.

ghost commented 3 years ago

Tagging subscribers to this area: @maryamariyan See info in area-owners.md if you want to be subscribed.

Issue Details
Hi, thanks for all your hard work! I've been wondering about the possibility to support Microsoft.Extensions.Logging on .NET Framework 4.5.2 - would it be possible and is it planned? I [see](https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-framework) that version 4.5.2 is still supported till April 26, 2022. We are building a .NET library and we aim to support .NET Framework versions that Microsoft still officially supports and we want to migrate to Microsoft.Extensions.Logging but the fact that it's only available from .NET Framework 4.6.1 is a big hurdle now. Any thoughts on this? Thanks a lot!
Author: Snipx
Assignees: -
Labels: `untriaged`, `area-Extensions-Logging`
Milestone: -
eerhardt commented 3 years ago

We don't plan on adding support for frameworks older than .NET Framework 4.6.1. See https://github.com/dotnet/announcements/issues/190.

Note it wouldn't just be Logging that would need a net452 target. We would need to change all of its dependencies as well to support that TFM. For example: