1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >net461 ;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks >
3
+ <TargetFrameworks >net462 ;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks >
4
4
<DebugType Condition =" '$(Configuration)' == 'Debug' " >Full</DebugType >
5
5
6
6
<Product >NLog.Extensions.Logging v$(ProductVersion)</Product >
@@ -20,6 +20,7 @@ ChangeLog:
20
20
21
21
- Updated to NLog v6.0-RC4
22
22
- Removed support for NetStandard 1.3 + 1.5
23
+ - Replaced .NET Framework v4.6.1 with v4.6.2 and NET8-nuget-dependencies.
23
24
- Enabled nullable references
24
25
- Avoid boxing when extracting LogEvent properties from struct
25
26
- Reduce allocation when creating LogEvent with properties by using ReadOnlySpan
@@ -53,14 +54,14 @@ List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-
53
54
<GenerateDocumentationFile >true</GenerateDocumentationFile >
54
55
<Nullable >enable</Nullable >
55
56
<LangVersion >9</LangVersion >
56
- <LangVersion Condition =" '$(TargetFramework)' != 'net461 ' AND '$(TargetFramework)' != 'netstandard2.0' " >12</LangVersion >
57
+ <LangVersion Condition =" '$(TargetFramework)' != 'net462 ' AND '$(TargetFramework)' != 'netstandard2.0' " >12</LangVersion >
57
58
<EnableTrimAnalyzer >true</EnableTrimAnalyzer >
58
59
<IsTrimmable Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" >true</IsTrimmable >
59
60
<IsAotCompatible Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))" >true</IsAotCompatible >
60
61
</PropertyGroup >
61
62
62
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net461 ' " >
63
- <Title >NLog.Extensions.Logging for .NET Framework 4.6.1 </Title >
63
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net462 ' " >
64
+ <Title >NLog.Extensions.Logging for .NET Framework 4.6.2 </Title >
64
65
<DisableImplicitFrameworkReferences >true</DisableImplicitFrameworkReferences >
65
66
</PropertyGroup >
66
67
<PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
@@ -83,14 +84,14 @@ List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-
83
84
<PackageReference Include =" NLog" Version =" 6.0.0-rc4" />
84
85
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
85
86
</ItemGroup >
86
- <ItemGroup Condition =" '$(TargetFramework)' == 'net461 ' " >
87
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.1 .0" />
88
- <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.1 .0" />
87
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net462 ' " >
88
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0 .0" />
89
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 8.0 .0" />
89
90
<Reference Include =" System" />
90
91
</ItemGroup >
91
92
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
92
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.1 .0" />
93
- <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.1 .0" />
93
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0 .0" />
94
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 8.0 .0" />
94
95
</ItemGroup >
95
96
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.1' " >
96
97
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
0 commit comments