Skip to content

NET Framework v4.6.2 with UseNLog for IHostApplicationBuilder #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 5.0.0-{build} # Only change for mayor versions (e.g. 6.0)
version: 6.0.0-{build} # Only change for mayor versions (e.g. 6.0)
image: Visual Studio 2022
configuration: Release
skip_tags: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static IHostBuilder UseNLog(this IHostBuilder builder, NLogProviderOption
return builder;
}

#if NET8_0_OR_GREATER
#if !NET6_0
/// <summary>
/// Enable NLog as logging provider for Microsoft Extension Logging
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion test/NLog.Extensions.Hosting.Tests/ExtensionMethodTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void UseNLog_LoadConfigurationFromSection()
LogManager.Configuration = null;
}

#if NET8_0_OR_GREATER
#if !NET6_0
[Fact]
public void IHostApplicationBuilder_UseNLog_ArgumentNullException()
{
Expand Down