Skip to content

Commit 0162e74

Browse files
authored
NET Framework v4.6.2 with UseNLog for IHostApplicationBuilder (#801)
1 parent b2556d0 commit 0162e74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.0.0-{build} # Only change for mayor versions (e.g. 6.0)
1+
version: 6.0.0-{build} # Only change for mayor versions (e.g. 6.0)
22
image: Visual Studio 2022
33
configuration: Release
44
skip_tags: true

src/NLog.Extensions.Hosting/Extensions/ConfigureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static IHostBuilder UseNLog(this IHostBuilder builder, NLogProviderOption
6060
return builder;
6161
}
6262

63-
#if NET8_0_OR_GREATER
63+
#if !NET6_0
6464
/// <summary>
6565
/// Enable NLog as logging provider for Microsoft Extension Logging
6666
/// </summary>

test/NLog.Extensions.Hosting.Tests/ExtensionMethodTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void UseNLog_LoadConfigurationFromSection()
150150
LogManager.Configuration = null;
151151
}
152152

153-
#if NET8_0_OR_GREATER
153+
#if !NET6_0
154154
[Fact]
155155
public void IHostApplicationBuilder_UseNLog_ArgumentNullException()
156156
{

0 commit comments

Comments
 (0)