Skip to content

Commit

Permalink
Update dotnet-args to support .NET 7 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Nov 13, 2022
1 parent 524b927 commit 771b423
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,20 @@ jobs:
fail-fast: false
matrix:
job:
- os: ubuntu-18.04
build: ./build.sh
- os: ubuntu-20.04
- os: ubuntu-22.04
build: ./build.sh
push: true
- os: windows-2019
build: ./build.cmd
- os: windows-2022
build: ./build.cmd
- os: macos-10.15
build: ./build.sh
- os: macos-11
- os: macos-12
build: ./build.sh
name: ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
steps:
- name: Setup net6.0
- name: Setup net7.0
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: "6.0.100"
dotnet-version: "7.0.100"
- name: Run dotnet --info
run: dotnet --info
- uses: actions/checkout@v3.1.0
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<LangVersion>11.0</LangVersion>
<NoWarn>$(NoWarn);NU5048</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TreatSpecificWarningsAsErrors />
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 C. Augusto Proiete & Contributors
Copyright 2020-2022 C. Augusto Proiete & Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ Another example where `dotnet-args` can be useful is when writing scripts for mu

## Prerequisites

**dotnet-args** runs on Windows, OSX, and Linux and requires one of the following versions of .NET:
- .NET 5.0 or higher
- .NET Core 3.1 or higher
- .NET Core 2.1 or higher
The latest version of **dotnet-args** runs on Windows, OSX, and Linux using one of the following versions of .NET:
- .NET 7.0
- .NET 6.0
- .NET 5.0
- .NET Core 3.1
- .NET Core 2.1

## Getting started :rocket:

Expand All @@ -59,4 +61,4 @@ Click on the [Releases](https://github.com/augustoproiete/dotnet-args/releases)

---

_Copyright &copy; 2020-2021 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE). `dotnet-args` logo is a derivative of work by [Goescat Wei](https://www.iconfinder.com/goescat) ([original](https://www.iconfinder.com/icons/3246759/cli_command_root_software_terminal_icon))._
_Copyright &copy; 2020-2022 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE). `dotnet-args` logo is a derivative of work by [Goescat Wei](https://www.iconfinder.com/goescat) ([original](https://www.iconfinder.com/icons/3246759/cli_command_root_software_terminal_icon))._
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"allowPrerelease": false,
"version": "6.0.100",
"version": "7.0.100",
"rollForward": "latestFeature"
}
}
2 changes: 1 addition & 1 deletion src/DotNet.Args/Console.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region Copyright 2020-2021 C. Augusto Proiete & Contributors
#region Copyright 2020-2022 C. Augusto Proiete & Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/DotNet.Args/DotNet.Args.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1</TargetFrameworks>
<RootNamespace>DotNet.Args</RootNamespace>
<OutputType>Exe</OutputType>
<ApplicationIcon>..\..\asset\dotnet-args.ico</ApplicationIcon>
Expand Down Expand Up @@ -30,7 +30,7 @@
<Authors>C. Augusto Proiete &amp; Contributors</Authors>
<Company>augustoproiete.net</Company>
<Description>.NET CLI Tool that prints the command-line arguments it receives, to help debug scripts and apps.</Description>
<Copyright>Copyright 2020-2021 C. Augusto Proiete &amp; Contributors - Provided under the Apache License, Version 2.0</Copyright>
<Copyright>Copyright 2020-2022 C. Augusto Proiete &amp; Contributors - Provided under the Apache License, Version 2.0</Copyright>
<PackageTags>args;dotnet;tool;dotnet-tool;dotnet-args;args;command-line;scripts</PackageTags>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>images\icon.png</PackageIcon>
Expand Down
2 changes: 1 addition & 1 deletion src/DotNet.Args/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region Copyright 2020-2021 C. Augusto Proiete & Contributors
#region Copyright 2020-2022 C. Augusto Proiete & Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 771b423

Please sign in to comment.