NLog.Web: NLogBuilder not supported on .NET 4.6.1?

Is it intent that the NLogBuilder would be supported only on .NET Standard 2.0? I’m trying to follow the setup instructions on the wiki for ASP.NET Core 2 and the NLogBuilder class is not available. Once I dug into the code I found this at the top of the NLogBuilder.cs file:

#if NETSTANDARD2_0

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 21 (13 by maintainers)

Most upvoted comments

.NET 4.6.1 implements .NET standard 2?

Full .NET Framework will always choose .NET-Framework-assemblies. In this case the .NET 4.5.1 (NetCore v1.1)

Think two nuget-packages are needed:

NLog.Web.AspNetCore NLog.Web.AspNetCore v2