Skip to content

Commit 8d58b3b

Browse files
Update NaturalStringExtensions to support .NET 7 (#72)
1 parent 062a72b commit 8d58b3b

20 files changed

Lines changed: 28 additions & 38 deletions

.github/workflows/ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,32 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
job:
29-
- os: ubuntu-18.04
30-
build: ./build.sh
31-
- os: ubuntu-20.04
29+
- os: ubuntu-22.04
3230
build: ./build.sh
3331
push: true
34-
- os: windows-2019
35-
build: ./build.cmd
3632
- os: windows-2022
3733
build: ./build.cmd
38-
- os: macos-10.15
39-
build: ./build.sh
40-
- os: macos-11
34+
- os: macos-12
4135
build: ./build.sh
4236
name: ${{ matrix.job.os }}
4337
runs-on: ${{ matrix.job.os }}
4438
steps:
4539
- name: Setup netcoreapp3.1
4640
uses: actions/setup-dotnet@v3.0.3
4741
with:
48-
dotnet-version: "3.1.415"
42+
dotnet-version: "3.1.425"
4943
- name: Setup net5.0
5044
uses: actions/setup-dotnet@v3.0.3
5145
with:
5246
dotnet-version: "5.0.403"
5347
- name: Setup net6.0
5448
uses: actions/setup-dotnet@v3.0.3
5549
with:
56-
dotnet-version: "6.0.100"
50+
dotnet-version: "6.0.403"
51+
- name: Setup net7.0
52+
uses: actions/setup-dotnet@v3.0.3
53+
with:
54+
dotnet-version: "7.0.100"
5755
- name: Run dotnet --info
5856
run: dotnet --info
5957
- uses: actions/checkout@v3.1.0

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>9.0</LangVersion>
3+
<LangVersion>11.0</LangVersion>
44
<Nullable>enable</Nullable>
55
<NoWarn>$(NoWarn);NU5048;CS8032</NoWarn>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021 C. Augusto Proiete & Contributors
189+
Copyright 2021-2022 C. Augusto Proiete & Contributors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,4 @@ Click on the [Releases](https://github.com/augustoproiete/NaturalStringExtension
147147

148148
---
149149

150-
_Copyright &copy; 2021 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE). `NaturalStringExtensions` logo is a derivative of work by [Benjamin STAWARZ](https://www.iconfinder.com/bensta) ([original](https://www.iconfinder.com/icons/6138342/desc_direction_down_numeric_sort_filter_icon))._
150+
_Copyright &copy; 2021-2022 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE). `NaturalStringExtensions` logo is a derivative of work by [Benjamin STAWARZ](https://www.iconfinder.com/bensta) ([original](https://www.iconfinder.com/icons/6138342/desc_direction_down_numeric_sort_filter_icon))._

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"allowPrerelease": false,
4-
"version": "6.0.100",
4+
"version": "7.0.100",
55
"rollForward": "latestFeature"
66
}
77
}

sample/SampleConsole/LibraryVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

sample/SampleConsole/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

sample/SampleConsole/SampleConsole.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1;net461</TargetFrameworks>
6-
<LangVersion>9.0</LangVersion>
7-
<Nullable>enable</Nullable>
5+
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;net461</TargetFrameworks>
86
</PropertyGroup>
97

108
<ItemGroup>

src/NaturalStringExtensions/IComparerOfStringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/NaturalStringExtensions/IEnumerableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)