Skip to content

Commit bcf8142

Browse files
committed
feat: add .NET 10 support and update all nugets
1 parent 686835d commit bcf8142

File tree

8 files changed

+42
-26
lines changed

8 files changed

+42
-26
lines changed

samples/MinimalApiSample/MinimalApiSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.5" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
1111
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Elasticsearch\Intility.Extensions.Logging.Elasticsearch.csproj" />
1212
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Sentry\Intility.Extensions.Logging.Sentry.csproj" />
1313
<ProjectReference Include="..\..\src\Intility.Logging.AspNetCore\Intility.Logging.AspNetCore.csproj" />

samples/WebSample/WebSample.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.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

samples/WorkerSample/WorkerSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Worker">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<UserSecretsId>dotnet-WorkerSample-E1FD34C8-B239-4D87-8143-0BA5129DDB52</UserSecretsId>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
9+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/Intility.Extensions.Logging.Elasticsearch/Intility.Extensions.Logging.Elasticsearch.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>net9.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/Intility.Extensions.Logging.Sentry/Intility.Extensions.Logging.Sentry.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -20,8 +20,8 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Sentry.AspNetCore" Version="5.15.1" />
24-
<PackageReference Include="Sentry.Serilog" Version="5.15.1" />
23+
<PackageReference Include="Sentry.AspNetCore" Version="5.16.2" />
24+
<PackageReference Include="Sentry.Serilog" Version="5.16.2" />
2525
</ItemGroup>
2626

2727
<ItemGroup>

src/Intility.Extensions.Logging/Intility.Extensions.Logging.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -24,12 +24,8 @@
2424
<PackageReference Include="Serilog" Version="4.3.0" />
2525
</ItemGroup>
2626

27-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
28-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.9" />
29-
</ItemGroup>
30-
31-
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
32-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.9" />
27+
<ItemGroup>
28+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.0" />
3329
</ItemGroup>
3430

3531
<ItemGroup>

src/Intility.Logging.AspNetCore/Intility.Logging.AspNetCore.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -28,15 +28,9 @@
2828
<PackageReference Include="Serilog.Enrichers.AzureClaims" Version="1.1.4" />
2929
</ItemGroup>
3030

31-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
32-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.9" />
33-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.9" />
34-
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
35-
</ItemGroup>
36-
37-
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
38-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.9" />
39-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.9" />
31+
<ItemGroup>
32+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.0" />
33+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
4034
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
4135
</ItemGroup>
4236

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<IsPackable>false</IsPackable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="coverlet.collector" Version="6.0.4" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
13+
<PackageReference Include="xunit" Version="2.9.3" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<Using Include="Xunit" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<ProjectReference Include="..\..\src\Intility.Extensions.Logging\Intility.Extensions.Logging.csproj" />
23+
<ProjectReference Include="..\..\src\Intility.Logging.AspNetCore\Intility.Logging.AspNetCore.csproj" />
24+
</ItemGroup>
25+
26+
</Project>

0 commit comments

Comments
 (0)