Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve AOT trimming with explicit loading of NLog config #5833

@snakefoot

Description

@snakefoot

Applications using Ahead-of-Time (AOT) trimming will always include the ability to parse NLog-configuration, because NLog will perform automatic loading of NLog.config on initial call to NLog.LogManager.GetCurrentClassLogger().

To reduce the footprint of NLog even further, then one could consider to remove this automatic-loading. This will of course have side-effects for all applications that doesn't use AOT, and will make most tutorials obsolete.

Alternative introduce new NLog.Basic / NLog.Core nuget-package, and then perform ILMerge into NLog-nuget-package (still single NLog.dll)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions