Skip to content

Commit ca5cb0b

Browse files
committed
Use .NET 9
1 parent 1467b0b commit ca5cb0b

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
windows-only: true
3232
deploy: ${{ inputs.deploy || github.ref_type == 'tag' }}
3333
package-version: ${{ inputs.package-version || (github.ref_type == 'tag' && github.ref_name) || format('0.0.0-ci-{0}', github.sha) }}
34-
dotnet-version: 8.0.x
34+
dotnet-version: 9.0.x
3535
secrets:
3636
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3737
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

Onova.Tests.Dummy/Onova.Tests.Dummy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0-windows</TargetFramework>
5+
<TargetFramework>net9.0-windows</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

Onova.Tests/Onova.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-
<TargetFramework>net8.0-windows</TargetFramework>
4+
<TargetFramework>net9.0-windows</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

Onova.Tests/Utils/DummyEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public string GetLastUpdaterLogs()
119119
return File.Exists(filePath) ? File.ReadAllText(filePath) : "";
120120
}
121121

122-
public async Task<string> RunDummyAsync(params string[] arguments)
122+
public async Task<string> RunDummyAsync(params IReadOnlyList<string> arguments)
123123
{
124124
var result = await Cli.Wrap("dotnet")
125125
.WithArguments(a => a.Add(DummyFilePath).Add(arguments))

Onova/Services/AggregatePackageResolver.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ namespace Onova.Services;
1111
/// <summary>
1212
/// Resolves packages using multiple other package resolvers.
1313
/// </summary>
14-
public class AggregatePackageResolver(IReadOnlyList<IPackageResolver> resolvers) : IPackageResolver
14+
public class AggregatePackageResolver(params IReadOnlyList<IPackageResolver> resolvers)
15+
: IPackageResolver
1516
{
16-
/// <summary>
17-
/// Initializes an instance of <see cref="AggregatePackageResolver" />.
18-
/// </summary>
19-
public AggregatePackageResolver(params IPackageResolver[] resolvers)
20-
: this((IReadOnlyList<IPackageResolver>)resolvers) { }
21-
2217
/// <inheritdoc />
2318
public async Task<IReadOnlyList<Version>> GetPackageVersionsAsync(
2419
CancellationToken cancellationToken = default

0 commit comments

Comments
 (0)