File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,11 @@ jobs:
122
122
7.0.x
123
123
124
124
- name : Ensure DotNet Path
125
+ if : ${{ matrix.options.os != 'windows-latest' }}
125
126
run : echo "/usr/share/dotnet" >> $GITHUB_PATH
126
127
127
128
- name : Confirm DotNet Version
128
- run : dotnet --version # This will now find dotnet in /usr/share/dotnet
129
+ run : dotnet --version
129
130
130
131
- name : DotNet Build
131
132
if : ${{ matrix.options.sdk-preview != true }}
Original file line number Diff line number Diff line change 3
3
[string ]$targetFramework
4
4
)
5
5
6
- # $env:DOTNET_ROOT = "/usr/share/dotnet"
7
- # $env:PATH = "$env:DOTNET_ROOT" + [System.IO.Path]::PathSeparator + $env:PATH
6
+ Write-Output $env: PATH
7
+
8
+ dotnet -- list- sdks
8
9
9
10
# Confirm dotnet version.
10
11
dotnet -- version
@@ -13,6 +14,5 @@ dotnet clean -c Release
13
14
14
15
$repositoryUrl = " https://github.com/$env: GITHUB_REPOSITORY "
15
16
16
-
17
17
# Building for a specific framework.
18
18
dotnet build - c Release -f $targetFramework / p:RepositoryUrl= $repositoryUrl
You can’t perform that action at this time.
0 commit comments