Skip to content

Commit 8121407

Browse files
committed
Specifying the target framework at restore
1 parent 6821c1d commit 8121407

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
dotnet-version: ${{ matrix.dotnet }}
7979

8080
- name: Restore dependencies
81-
run: dotnet restore
81+
run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-framework }}
8282

8383
- name: Build
8484
run: dotnet build --no-restore -c Release -f ${{ matrix.dotnet-framework }}

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
dotnet-version: ${{ matrix.dotnet }}
5858

5959
- name: Restore dependencies
60-
run: dotnet restore
60+
run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-framework }}
6161

6262
- name: Build
6363
run: dotnet build --no-restore -c Release -f ${{ matrix.dotnet-framework }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
dotnet-version: ${{ matrix.dotnet }}
167167

168168
- name: Restore dependencies
169-
run: dotnet restore
169+
run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-framework }}
170170

171171
- name: Build
172172
run: dotnet build --no-restore -c Release -f ${{ matrix.dotnet-framework }}

0 commit comments

Comments
 (0)