Skip to content

Commit a7da6ed

Browse files
authored
install dotnet in CI based on global.json (#589)
* install dotnet in CI based on global.json * Update global.json
1 parent 416af85 commit a7da6ed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

appveyor.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ init:
1818
Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
1919
}
2020
21-
build_script: build.cmd ci
21+
build_script:
22+
- pwsh: |
23+
Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"
24+
./dotnet-install.ps1 -JSonFile global.json -Architecture x64 -InstallDir 'C:\Program Files\dotnet'
25+
- build.cmd ci
2226

2327
test: off
2428

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.101",
3+
"version": "9.0.200",
44
"allowPrerelease": true,
55
"rollForward": "latestFeature"
66
}

0 commit comments

Comments
 (0)