11<Project Sdk =" Microsoft.NET.Sdk" >
22 <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 >
44 <DebugType Condition =" '$(Configuration)' == 'Debug' " >Full</DebugType >
55
66 <Product >NLog.Extensions.Logging v$(ProductVersion)</Product >
@@ -20,6 +20,7 @@ ChangeLog:
2020
2121- Updated to NLog v6.0-RC4
2222- Removed support for NetStandard 1.3 + 1.5
23+ - Replaced .NET Framework v4.6.1 with v4.6.2 and NET8-nuget-dependencies.
2324- Enabled nullable references
2425- Avoid boxing when extracting LogEvent properties from struct
2526- 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-
5354 <GenerateDocumentationFile >true</GenerateDocumentationFile >
5455 <Nullable >enable</Nullable >
5556 <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 >
5758 <EnableTrimAnalyzer >true</EnableTrimAnalyzer >
5859 <IsTrimmable Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" >true</IsTrimmable >
5960 <IsAotCompatible Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))" >true</IsAotCompatible >
6061 </PropertyGroup >
6162
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 >
6465 <DisableImplicitFrameworkReferences >true</DisableImplicitFrameworkReferences >
6566 </PropertyGroup >
6667 <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-
8384 <PackageReference Include =" NLog" Version =" 6.0.0-rc4" />
8485 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
8586 </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" />
8990 <Reference Include =" System" />
9091 </ItemGroup >
9192 <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" />
9495 </ItemGroup >
9596 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.1' " >
9697 <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
0 commit comments