mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Use .NET 9
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
deploy: ${{ inputs.deploy || github.ref_type == 'tag' }}
|
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) }}
|
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:
|
secrets:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
|
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ApplicationIcon>../favicon.ico</ApplicationIcon>
|
<ApplicationIcon>../favicon.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ApplicationIcon>../favicon.ico</ApplicationIcon>
|
<ApplicationIcon>../favicon.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -10,16 +10,13 @@ internal static class AssertionExtensions
|
|||||||
{
|
{
|
||||||
public static void ConsistOfLines(
|
public static void ConsistOfLines(
|
||||||
this StringAssertions assertions,
|
this StringAssertions assertions,
|
||||||
IEnumerable<string> lines
|
params IEnumerable<string> lines
|
||||||
) =>
|
) =>
|
||||||
assertions
|
assertions
|
||||||
.Subject.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries)
|
.Subject.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries)
|
||||||
.Should()
|
.Should()
|
||||||
.Equal(lines);
|
.Equal(lines);
|
||||||
|
|
||||||
public static void ConsistOfLines(this StringAssertions assertions, params string[] lines) =>
|
|
||||||
assertions.ConsistOfLines((IEnumerable<string>)lines);
|
|
||||||
|
|
||||||
public static AndConstraint<StringAssertions> ContainAllInOrder(
|
public static AndConstraint<StringAssertions> ContainAllInOrder(
|
||||||
this StringAssertions assertions,
|
this StringAssertions assertions,
|
||||||
IEnumerable<string> values
|
IEnumerable<string> values
|
||||||
|
|||||||
@@ -12,13 +12,10 @@ internal partial class Disposable
|
|||||||
{
|
{
|
||||||
public static IDisposable Create(Action dispose) => new Disposable(dispose);
|
public static IDisposable Create(Action dispose) => new Disposable(dispose);
|
||||||
|
|
||||||
public static IDisposable Merge(IEnumerable<IDisposable> disposables) =>
|
public static IDisposable Merge(params IEnumerable<IDisposable> disposables) =>
|
||||||
Create(() =>
|
Create(() =>
|
||||||
{
|
{
|
||||||
foreach (var disposable in disposables)
|
foreach (var disposable in disposables)
|
||||||
disposable.Dispose();
|
disposable.Dispose();
|
||||||
});
|
});
|
||||||
|
|
||||||
public static IDisposable Merge(params IDisposable[] disposables) =>
|
|
||||||
Merge((IEnumerable<IDisposable>)disposables);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user