Skip to content

Commit ad9ad71

Browse files
committed
Reinstalling 3.1 for GitVersion and building with 5.0
1 parent f976a52 commit ad9ad71

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/CI.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
uses: actions/setup-dotnet@v1
2828
with:
2929
dotnet-version: 5.0.x
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: 3.1.x
3033
- name: Install dependencies
3134
run: dotnet restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
3235
- name: Build
33-
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
36+
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj -f net5.0
3437
- name: Test
3538
run: dotnet test ./tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- main
99
paths:
1010
- src/**
11+
- .github/**
1112

1213
jobs:
1314
build:
@@ -23,14 +24,17 @@ jobs:
2324
uses: actions/setup-dotnet@v1
2425
with:
2526
dotnet-version: 5.0.x
27+
uses: actions/setup-dotnet@v1
28+
with:
29+
dotnet-version: 3.1.x
2630
- name: Install GitVersion
2731
uses: gittools/actions/gitversion/setup@v0.9.6
2832
with:
2933
versionSpec: '5.x'
3034
- name: Install dependencies
3135
run: dotnet restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
3236
- name: Build
33-
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj
37+
run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj -f net5.0
3438
- name: Test
3539
run: dotnet test ./tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj
3640
- name: Use GitVersion

0 commit comments

Comments
 (0)