Skip to content

Commit 2a9189e

Browse files
authored
Version 6.1.0 - NET10 (#818)
1 parent 3af159d commit 2a9189e

File tree

7 files changed

+29
-8
lines changed

7 files changed

+29
-8
lines changed

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Date format: (year/month/day)
44

5+
### Version 6.1.0 (2025/11/12)
6+
7+
- [#818](https://github.com/NLog/NLog.Extensions.Logging/pull/818) Added TargetFramework .NET 10 (@snakefoot)
8+
59
### Version 6.0.6 (2025/11/09)
610

711
- [#817](https://github.com/NLog/NLog.Extensions.Logging/pull/817) Updated to NLog v6.0.6 (@snakefoot)

appveyor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ environment:
1111
secure: OUI/jCbBF75TwKMPT+IfewdgwCgx9nQkRg3cYOEQNJeX5J2++oWS3dmpwO51XduP
1212
JAVA_HOME: C:\Program Files\Java\jdk17
1313

14+
install:
15+
- ps: |
16+
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
17+
& $env:temp\dotnet-install.ps1 -Architecture x64 -Version '10.0.100' -InstallDir "$env:ProgramFiles\dotnet"
18+
1419
build_script:
1520
- ps: .\build.ps1
1621

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# creates NuGet package at \artifacts
33
dotnet --version
44

5-
$versionPrefix = "6.0.6"
5+
$versionPrefix = "6.1.0"
66
$versionSuffix = ""
77
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
88
$versionProduct = $versionPrefix;

src/NLog.Extensions.Hosting/NLog.Extensions.Hosting.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0;net10.0</TargetFrameworks>
55
<DebugType Condition=" '$(Configuration)' == 'Debug' ">Full</DebugType>
66

77
<Product>NLog.Extensions.Hosting v$(ProductVersion)</Product>
@@ -59,6 +59,9 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
5959
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
6060
<Title>NLog.Extensions.Hosting for .NET 8</Title>
6161
</PropertyGroup>
62+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
63+
<Title>NLog.Extensions.Hosting for .NET 10</Title>
64+
</PropertyGroup>
6265
<PropertyGroup>
6366
<AssemblyTitle>$(Title)</AssemblyTitle>
6467
</PropertyGroup>
@@ -83,6 +86,10 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
8386
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
8487
</ItemGroup>
8588

89+
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
90+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.0" />
91+
</ItemGroup>
92+
8693
<ItemGroup>
8794
<Compile Include="..\NLog.Extensions.Logging\Internal\Guard.cs" Link="Internal\Guard.cs" />
8895
<Compile Include="..\NLog.Extensions.Logging\Internal\RegisterNLogLoggingProvider.cs" Link="Internal\RegisterNLogLoggingProvider.cs" />

src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0;net10.0</TargetFrameworks>
44
<DebugType Condition=" '$(Configuration)' == 'Debug' ">Full</DebugType>
55

66
<Product>NLog.Extensions.Logging v$(ProductVersion)</Product>
@@ -18,9 +18,7 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
1818
<PackageReleaseNotes>
1919
ChangeLog:
2020

21-
- [#817] Updated to NLog v6.0.6 (@snakefoot)
22-
- [#814] Avoid boxing ITuple when used for BeginScope (@snakefoot)
23-
- [#813] Allow BeginScope to perform reflection of KeyValuePair (@snakefoot)
21+
- [#818] Added TargetFramework .NET 10
2422

2523
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
2624

@@ -67,6 +65,9 @@ List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-
6765
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
6866
<Title>NLog.Extensions.Logging for .NET 8</Title>
6967
</PropertyGroup>
68+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
69+
<Title>NLog.Extensions.Logging for .NET 10</Title>
70+
</PropertyGroup>
7071
<PropertyGroup>
7172
<AssemblyTitle>$(Title)</AssemblyTitle>
7273
</PropertyGroup>
@@ -96,6 +97,10 @@ List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-
9697
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
9798
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
9899
</ItemGroup>
100+
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
101+
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.0" />
102+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.0" />
103+
</ItemGroup>
99104

100105
<Target Name="DownloadMissingContent" BeforeTargets="GenerateNuspec">
101106
<DownloadFile SourceUrl="https://nlog-project.org/N.png" DestinationFolder="$(MSBuildThisFileDirectory)" />

test/NLog.Extensions.Hosting.Tests/NLog.Extensions.Hosting.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net462;net8.0;net10.0</TargetFrameworks>
44
<OutputType>Library</OutputType>
55
<IsPackable>false</IsPackable>
66
<DebugType>full</DebugType>

test/NLog.Extensions.Logging.Tests/NLog.Extensions.Logging.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net8.0;net10.0</TargetFrameworks>
55
<OutputType>Library</OutputType>
66
<IsPackable>false</IsPackable>
77
<DebugType>Full</DebugType>

0 commit comments

Comments
 (0)