Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/migrate net80 #15

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/dotnet-core.yml

This file was deleted.

17 changes: 13 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -2,14 +2,17 @@ name: .NET

on:
push:
branches: [ "master" ]
branches:
- master
- develop
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
env:
working-directory: ./src

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

- name: Restore dependencies
run: dotnet restore src/System.CommandLine.Extensions.sln
working-directory: ${{env.working-directory}}
run: dotnet restore System.CommandLine.Extensions.sln

- name: Build
run: dotnet build src/System.CommandLine.Extensions.sln --no-restore
working-directory: ${{env.working-directory}}
run: dotnet build System.CommandLine.Extensions.sln --no-restore

- name: Test
working-directory: ${{env.working-directory}}
run: dotnet test System.CommandLine.Extensions.sln --no-restore --verbosity normal
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.vs/
.idea/
.github/

bin/
obj/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![.NET Core](https://github.com/matzefriedrich/command-line-api-extensions/workflows/.NET%20Core/badge.svg)
![.NET 8](https://github.com/matzefriedrich/command-line-api-extensions/actions/workflows/dotnet.yml/badge.svg)

# System.CommandLine.Extensions

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

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<PackageVersion>2.0.0-beta4.22272.1</PackageVersion>
<PackageVersion>2.1.0-beta4.22272.1</PackageVersion>
<Authors>Matthias Friedrich</Authors>
<Description>A slim command configuration and execution layer similar to Microsoft.Extensions.CommandlineUtils.</Description>
<Copyright>2020 - 2022 by Matthias Friedrich</Copyright>
<Copyright>2020 - 2024 by Matthias Friedrich</Copyright>
<RepositoryUrl>https://github.com/matzefriedrich/command-line-api-extensions</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>CLI</PackageTags>
<LangVersion>default</LangVersion>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>

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

<ItemGroup>
<None Update="docs\README.md">
<None Include="docs/README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
<PackagePath>/</PackagePath>
</None>
</ItemGroup>

2 changes: 1 addition & 1 deletion src/System.CommandLine.Extensions/docs/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ A slim command configuration and execution layer similar to `Microsoft.Extension
````csharp
private static int Main(string[] args)
{
var app = new CommandlineApplication();
var app = new CommandLineApplication();

app.Command("greeting", "Greets the specified person.", greeting =>
{
3 changes: 2 additions & 1 deletion src/demo/demo.csproj
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>