Skip to content

Commit 80a1432

Browse files
Check the version within the powershell script
1 parent b350dbe commit 80a1432

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ jobs:
121121
dotnet-version: |
122122
7.0.x
123123
124-
- name: Ensure Dotnet Path
124+
- name: Ensure DotNet Path
125125
run: echo "/usr/share/dotnet" >> $GITHUB_PATH
126126

127-
- name: Confirm .NET Version
127+
- name: Confirm DotNet Version
128128
run: dotnet --version # This will now find dotnet in /usr/share/dotnet
129129

130130
- name: DotNet Build

.github/workflows/code-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
dotnet-version: |
6464
6.0.x
6565
66-
- name: Ensure Dotnet Path
66+
- name: Ensure DotNet Path
6767
run: echo "/usr/share/dotnet" >> $GITHUB_PATH
6868

69-
- name: Confirm .NET Version
69+
- name: Confirm DotNet Version
7070
run: dotnet --version # This will now find dotnet in /usr/share/dotnet
7171

7272
- name: DotNet Build

ci-build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ param(
33
[string]$targetFramework
44
)
55

6+
#$env:DOTNET_ROOT = "/usr/share/dotnet"
7+
#$env:PATH = "$env:DOTNET_ROOT" + [System.IO.Path]::PathSeparator + $env:PATH
8+
9+
# Confirm dotnet version.
10+
dotnet --version
11+
612
dotnet clean -c Release
713

814
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY"
915

16+
1017
# Building for a specific framework.
1118
dotnet build -c Release -f $targetFramework /p:RepositoryUrl=$repositoryUrl

0 commit comments

Comments
 (0)