Update to target net 5.0 and dotnet core 3.1
MODIFY
.github/workflows/Branch v9.0 - Linux.yml
.github/workflows/Branch v9.0 - Linux.yml
@@ -11,12 +11,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ dotnet-version: [ '3.1.x', '5.0.x' ]
+ name: Dotnet ${{ matrix.dotnet }}
steps:
- uses: actions/checkout@v2
- - name: Setup .NET
+ - name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.x
+ dotnet-version: ${{ matrix.dotnet }}
- name: Get Build Information
run: |
pwd

MODIFY
.github/workflows/Branch v9.0 - Windows.yml
.github/workflows/Branch v9.0 - Windows.yml
@@ -11,12 +11,16 @@ on:
jobs:
build:
runs-on: windows-latest
+ strategy:
+ matrix:
+ dotnet-version: ['3.1.x', '5.0.x' ]
+ name: Dotnet ${{ matrix.dotnet }}
steps:
- uses: actions/checkout@v2
- - name: Setup .NET
+ - name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.x
+ dotnet-version: ${{ matrix.dotnet }}
- name: Get Build Information
run: |
pwd

MODIFY
Directory.Build.props
Directory.Build.props
<Project>
<PropertyGroup>
- <TargetFramework>netcoreapp3.1</TargetFramework>
+ <TargetFrameworks>net5.0;netcoreapp3.1</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<ProductName Condition="'$(ProductName)'==''">Chapter$(ChapterNumber)</ProductName>

Update to target net 5.0 and dotnet core 3.1