Skip to content

Commit 1141cb8

Browse files
committed
AppVeyor: install .NET 10 SDK required for C# 14
* Not installing via `apt-get install dotnet-sdk-10.0` because that would lead to older runtimes being uninstalled. * Installing to `/usr/local/dotnet` SDK as it would not get detected in `~/.dotnet`. .NET 10 SDK won't get detected if installed in `~/.dotnet`
1 parent 1761ccc commit 1141cb8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

appveyor.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ for:
1818
only:
1919
- image: Ubuntu2204
2020

21+
# install .NET 10 SDK
22+
install:
23+
- curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
24+
- chmod +x ./dotnet-install.sh
25+
- sudo ./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet
26+
2127
# build and run tests
2228
build_script:
2329
- uname -a
@@ -46,6 +52,10 @@ for:
4652
Update-AppveyorBuild -Version ($env:APPVEYOR_REPO_TAG_NAME).TrimStart("v")
4753
}
4854
55+
# install .NET 10 SDK
56+
install:
57+
- cmd: choco install dotnet-10.0-sdk
58+
4959
# build and run tests
5060
build_script:
5161
- cmd: build.cmd

0 commit comments

Comments
 (0)