Skip to content

Commit 0a4a54d

Browse files
Feature/migrate net80 (#15)
* Updates workkflow definitions * Upgrades the project to net8.0 * Updates the package version * Updates the workflow status badge
1 parent d913dd4 commit 0a4a54d

File tree

8 files changed

+28
-48
lines changed

8 files changed

+28
-48
lines changed

.github/workflows/dotnet-core.yml

-30
This file was deleted.

.github/workflows/dotnet.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: .NET
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches:
6+
- master
7+
- develop
68
pull_request:
79
branches: [ "master" ]
810

911
jobs:
1012
build:
11-
1213
runs-on: ubuntu-latest
14+
env:
15+
working-directory: ./src
1316

1417
steps:
1518
- uses: actions/checkout@v4
@@ -20,7 +23,13 @@ jobs:
2023
dotnet-version: 8.0.x
2124

2225
- name: Restore dependencies
23-
run: dotnet restore src/System.CommandLine.Extensions.sln
26+
working-directory: ${{env.working-directory}}
27+
run: dotnet restore System.CommandLine.Extensions.sln
2428

2529
- name: Build
26-
run: dotnet build src/System.CommandLine.Extensions.sln --no-restore
30+
working-directory: ${{env.working-directory}}
31+
run: dotnet build System.CommandLine.Extensions.sln --no-restore
32+
33+
- name: Test
34+
working-directory: ${{env.working-directory}}
35+
run: dotnet test System.CommandLine.Extensions.sln --no-restore --verbosity normal

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.vs/
22
.idea/
3-
.github/
43

54
bin/
65
obj/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![.NET Core](https://github.com/matzefriedrich/command-line-api-extensions/workflows/.NET%20Core/badge.svg)
1+
![.NET 8](https://github.com/matzefriedrich/command-line-api-extensions/actions/workflows/dotnet.yml/badge.svg)
22

33
# System.CommandLine.Extensions
44

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
54
<ImplicitUsings>enable</ImplicitUsings>
65
<Nullable>enable</Nullable>
76
<LangVersion>latest</LangVersion>
7+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
8+
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
89
</PropertyGroup>
910

1011
<ItemGroup>
11-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
12+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
1213
<PrivateAssets>all</PrivateAssets>
1314
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1415
</PackageReference>
15-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
16+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
1617
</ItemGroup>
1718

1819
</Project>

src/System.CommandLine.Extensions/System.CommandLine.Extensions.csproj

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.1</TargetFramework>
5-
<PackageVersion>2.0.0-beta4.22272.1</PackageVersion>
4+
<PackageVersion>2.1.0-beta4.22272.1</PackageVersion>
65
<Authors>Matthias Friedrich</Authors>
76
<Description>A slim command configuration and execution layer similar to Microsoft.Extensions.CommandlineUtils.</Description>
8-
<Copyright>2020 - 2022 by Matthias Friedrich</Copyright>
7+
<Copyright>2020 - 2024 by Matthias Friedrich</Copyright>
98
<RepositoryUrl>https://github.com/matzefriedrich/command-line-api-extensions</RepositoryUrl>
109
<RepositoryType>git</RepositoryType>
1110
<PackageTags>CLI</PackageTags>
1211
<LangVersion>default</LangVersion>
1312
<Nullable>enable</Nullable>
1413
<PackageReadmeFile>README.md</PackageReadmeFile>
15-
<AssemblyVersion>2.0.0.0</AssemblyVersion>
16-
<FileVersion>2.0.0.0</FileVersion>
14+
<AssemblyVersion>2.1.0.0</AssemblyVersion>
15+
<FileVersion>2.1.0.0</FileVersion>
16+
<TargetFrameworks>net8.0</TargetFrameworks>
1717
</PropertyGroup>
1818

1919
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -42,9 +42,9 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<None Update="docs\README.md">
45+
<None Include="docs/README.md">
4646
<Pack>True</Pack>
47-
<PackagePath>\</PackagePath>
47+
<PackagePath>/</PackagePath>
4848
</None>
4949
</ItemGroup>
5050

src/System.CommandLine.Extensions/docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A slim command configuration and execution layer similar to `Microsoft.Extension
55
````csharp
66
private static int Main(string[] args)
77
{
8-
var app = new CommandlineApplication();
8+
var app = new CommandLineApplication();
99

1010
app.Command("greeting", "Greets the specified person.", greeting =>
1111
{

src/demo/demo.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<Nullable>enable</Nullable>
67
</PropertyGroup>
78

89
<ItemGroup>

0 commit comments

Comments
 (0)