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 8c03b6f commit edc95c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
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 CliWrap.Tests/CliWrap.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOsPlatform('Windows'))">$(TargetFrameworks);net48</TargetFrameworks>
</PropertyGroup>

Expand Down
5 changes: 1 addition & 4 deletions CliWrap.Tests/Utils/Extensions/AssertionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ internal static class AssertionExtensions
{
public static void ConsistOfLines(
this StringAssertions assertions,
IEnumerable<string> lines
params IEnumerable<string> lines
) =>
assertions
.Subject.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries)
.Should()
.Equal(lines);

public static void ConsistOfLines(this StringAssertions assertions, params string[] lines) =>
assertions.ConsistOfLines((IEnumerable<string>)lines);
}
3 changes: 2 additions & 1 deletion CliWrap/PipeTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public static PipeTarget ToDelegate(Action<string> handleLine) =>
/// <summary>
/// Creates a pipe target that replicates data over multiple inner targets.
/// </summary>
public static PipeTarget Merge(IEnumerable<PipeTarget> targets)
public static PipeTarget Merge(params IEnumerable<PipeTarget> targets)
{
// This function needs to take output as a parameter because it's recursive
static void FlattenTargets(IEnumerable<PipeTarget> targets, ICollection<PipeTarget> output)
Expand Down Expand Up @@ -340,6 +340,7 @@ static IReadOnlyList<PipeTarget> OptimizeTargets(IEnumerable<PipeTarget> targets
/// <summary>
/// Creates a pipe target that replicates data over multiple inner targets.
/// </summary>
// TODO: (breaking change) remove the other overload
public static PipeTarget Merge(params PipeTarget[] targets) =>
Merge((IEnumerable<PipeTarget>)targets);
}

0 comments on commit edc95c6

Please sign in to comment.