Skip to content

IHostApplicationBuilder.UseNLog() is not available for Framework projects #800

Closed
@FixRM

Description

@FixRM

Hello and thank you for your work!

I use Microsoft.Extensions.Hosting with .NET Framework 4.7/4.8. It turns out that IHostApplicationBuilder.UseNLog() is available only #if NET8_0_OR_GREATER. Updating to .NET 8 is not an option due to other Microsoft dependencies. Is there a simple workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions