Skip to content

Commit df82ede

Browse files
Upgrade to .NET 10
1 parent 5a7167f commit df82ede

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup .NET
1212
uses: actions/setup-dotnet@v4
1313
with:
14-
dotnet-version: 9.0.x
14+
dotnet-version: 10.0.x
1515

1616
- name: Restore
1717
run: dotnet restore

.github/workflows/CodeQL.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Setup .NET
5454
uses: actions/setup-dotnet@v4
5555
with:
56-
dotnet-version: 9.0.x
56+
dotnet-version: 10.0.x
5757

5858
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)

.github/workflows/Sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: 9.0.x
18+
dotnet-version: 10.0.x
1919

2020
- name: Install Java
2121
uses: actions/setup-java@v4

.github/workflows/nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: actions/setup-dotnet@v4
1616
with:
17-
dotnet-version: 9.0.x
17+
dotnet-version: 10.0.x
1818

1919
- name: Run tests
2020
run: dotnet test

src/LibYear.Core/LibYear.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>9.0.2</Version>
4-
<TargetFramework>net9.0</TargetFramework>
3+
<Version>10.0.0</Version>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Product>libyear</Product>
66
<PackageId>LibYear.Core</PackageId>
77
<Authors>ecoAPM LLC</Authors>

src/LibYear/Command.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Diagnostics.CodeAnalysis;
21
using Spectre.Console;
32
using Spectre.Console.Cli;
43

@@ -11,7 +10,10 @@ public class Command : AsyncCommand<Settings>
1110
public Command(IAnsiConsole console)
1211
=> _console = console;
1312

14-
public override async Task<int> ExecuteAsync(CommandContext context, Settings settings)
13+
public async Task<int> ExecuteAsync(CommandContext context, Settings settings)
14+
=> await ExecuteAsync(context, settings, CancellationToken.None);
15+
16+
public override async Task<int> ExecuteAsync(CommandContext context, Settings settings, CancellationToken cancellationToken)
1517
{
1618
try
1719
{

src/LibYear/LibYear.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>9.0.2</Version>
3+
<Version>10.0.0</Version>
44
<OutputType>Exe</OutputType>
55
<PackAsTool>true</PackAsTool>
66
<Product>libyear</Product>
77
<PackageId>LibYear</PackageId>
88
<ToolCommandName>dotnet-libyear</ToolCommandName>
9-
<TargetFramework>net9.0</TargetFramework>
9+
<TargetFramework>net10.0</TargetFramework>
1010
<Authors>ecoAPM LLC</Authors>
1111
<Company>ecoAPM LLC</Company>
1212
<Copyright>ecoAPM LLC</Copyright>
@@ -21,7 +21,7 @@
2121
</PropertyGroup>
2222
<ItemGroup>
2323
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
24-
<PackageReference Include="Spectre.Console.Cli" Version="0.51.1" />
24+
<PackageReference Include="Spectre.Console.Cli" Version="0.53.0" />
2525
<ProjectReference Include="../LibYear.Core/LibYear.Core.csproj" />
2626
<None Include="../../README.md" CopyToOutputDirectory="PreserveNewest" Pack="true" PackagePath="." />
2727
</ItemGroup>

test/LibYear.Core.Tests/LibYear.Core.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="coverlet.collector" Version="6.0.4" />
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1010
<PackageReference Include="NSubstitute" Version="5.3.0" />
1111
<PackageReference Include="NuGet.Protocol" Version="6.14.0" />
1212
<PackageReference Include="System.IO.Abstractions" Version="22.0.16" />
1313
<PackageReference Include="xunit" Version="2.9.3" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
1515
<ProjectReference Include="../../src/LibYear.Core/LibYear.Core.csproj" />
1616
<None Include="FileTypes/packages.config" CopyToOutputDirectory="Always" />
1717
<None Include="FileTypes/project.csproj" CopyToOutputDirectory="Always" />

test/LibYear.Tests/LibYear.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="coverlet.collector" Version="6.0.4" />
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1010
<PackageReference Include="NSubstitute" Version="5.3.0" />
11-
<PackageReference Include="Spectre.Console.Testing" Version="0.51.1" />
11+
<PackageReference Include="Spectre.Console.Testing" Version="0.53.0" />
1212
<PackageReference Include="xunit" Version="2.9.3" />
13-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
1414
<ProjectReference Include="..\..\src\LibYear\LibYear.csproj" />
1515
<ProjectReference Include="..\LibYear.Core.Tests\LibYear.Core.Tests.csproj" />
1616
</ItemGroup>

0 commit comments

Comments
 (0)