File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 96
96
97
97
build_script :
98
98
- 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
+
99
110
Write-Output ".NET version:"
100
111
dotnet --version
101
112
You can’t perform that action at this time.
0 commit comments