Microsoft.Extensions.Logging.Log4Net.AspNetCore supported in .net 9 ?

Dani_S 4,071 Reputation points
2025-02-04T08:03:33.65+00:00

Hi,

Does this pack supported in .Net 9 ?

<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="8.0.0" />

Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,898 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,096 Reputation points Microsoft Vendor
    2025-02-05T05:39:51.5166667+00:00

    Hello,

    Microsoft.Extensions.Logging.Log4Net.AspNetCore supports .Net 8, and in general .Net 9 is backward compatible. You could see this in the Nuget Package details page. For the Log function, it is more recommended to refer to this document and use Microsoft.Extensions.Logging to implement the log function adapted to .net 9.0.

    Update:

    It's not clear what the overall problem is you're trying to solve. You have multiple linked threads with information spread across hundreds of comments. There have been several good answers which didn't help your underlying scenario. This is beyond the scope of what we can help you with in the forums. 

    If you need further help please open a support ticket at https://aka.ms/mauisupport and somebody can work with you directly to understand the overall problem and help you solve it.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 70,776 Reputation points
    2025-02-04T16:30:06.78+00:00

    It not a very active repo. No updates in a year and pull requests ignored. It should work, but if not, I’d clone the repo, add net 9 target and build. From the clone you could generate a pull request, in case the repo owner updates the repo.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.