Skip to content

Commit a66a5c1

Browse files
authored
Specify sdk version in global.json (#509)
* Specify sdk version in global.json * Remove error message from global.json Removed error message from global.json.
1 parent 88cd36c commit a66a5c1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ done
1414

1515
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
1616

17-
sdkLine=$(grep -m 1 'dotnet' "$scriptroot/global.json")
17+
sdkLine=$(grep -m 1 '"dotnet"' "$scriptroot/global.json")
1818
sdkPattern="\"dotnet\" *: *\"(.*)\""
1919
if [[ $sdkLine =~ $sdkPattern ]]; then
2020
export SDK_VERSION=${BASH_REMATCH[1]}

global.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"sdk": {
3+
"version": "9.0.112",
4+
"rollForward": "latestPatch",
5+
"paths": [
6+
".dotnet",
7+
"$host$"
8+
]
9+
},
210
"tools": {
311
"dotnet": "9.0.112"
412
},

0 commit comments

Comments
 (0)