Skip to content

Commit

Permalink
Use .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Nov 12, 2024
1 parent 1467b0b commit ca5cb0b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
windows-only: true
deploy: ${{ inputs.deploy || github.ref_type == 'tag' }}
package-version: ${{ inputs.package-version || (github.ref_type == 'tag' && github.ref_name) || format('0.0.0-ci-{0}', github.sha) }}
dotnet-version: 8.0.x
dotnet-version: 9.0.x
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Onova.Tests.Dummy/Onova.Tests.Dummy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Onova.Tests/Onova.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Onova.Tests/Utils/DummyEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public string GetLastUpdaterLogs()
return File.Exists(filePath) ? File.ReadAllText(filePath) : "";
}

public async Task<string> RunDummyAsync(params string[] arguments)
public async Task<string> RunDummyAsync(params IReadOnlyList<string> arguments)
{
var result = await Cli.Wrap("dotnet")
.WithArguments(a => a.Add(DummyFilePath).Add(arguments))
Expand Down
9 changes: 2 additions & 7 deletions Onova/Services/AggregatePackageResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ namespace Onova.Services;
/// <summary>
/// Resolves packages using multiple other package resolvers.
/// </summary>
public class AggregatePackageResolver(IReadOnlyList<IPackageResolver> resolvers) : IPackageResolver
public class AggregatePackageResolver(params IReadOnlyList<IPackageResolver> resolvers)
: IPackageResolver
{
/// <summary>
/// Initializes an instance of <see cref="AggregatePackageResolver" />.
/// </summary>
public AggregatePackageResolver(params IPackageResolver[] resolvers)
: this((IReadOnlyList<IPackageResolver>)resolvers) { }

/// <inheritdoc />
public async Task<IReadOnlyList<Version>> GetPackageVersionsAsync(
CancellationToken cancellationToken = default
Expand Down

0 comments on commit ca5cb0b

Please sign in to comment.