Skip to content

Commit 0d0799d

Browse files
committed
Install .NET 8 (preview 4) in cibuild
1 parent 3f55cb7 commit 0d0799d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

appveyor.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ for:
9696

9797
build_script:
9898
- pwsh: |
99+
Write-Output "Install .NET 8 Preview"
100+
# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
101+
# https://help.appveyor.com/discussions/questions/40585-supporting-net-core-30-previews
102+
# https://help.appveyor.com/discussions/problems/28035-unable-to-install-specific-version-of-net-core-on-ubuntu-images
103+
if ($IsWindows) {
104+
pwsh -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version 8.0.100-preview.4.23260.5 -InstallDir 'C:\Program Files\dotnet'"
105+
}
106+
else {
107+
sudo curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin --version 8.0.100-preview.4.23260.5 --install-dir /usr/share/dotnet
108+
}
109+
99110
Write-Output ".NET version:"
100111
dotnet --version
101112

0 commit comments

Comments
 (0)