Skip to content

Commit 9f5db47

Browse files
committed
Quick attempt at installing .NET 7 on build
1 parent b936301 commit 9f5db47

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ version: '{build}'
22
skip_tags: true
33
image: Visual Studio 2022
44
test: off
5+
install:
6+
- ps: $RequiredDotnetVersion = $(Get-Content ./global.json | ConvertFrom-Json).sdk.version
7+
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
8+
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
9+
- ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
10+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $RequiredDotnetVersion -InstallDir $env:DOTNET_INSTALL_DIR'
11+
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
512
build_script:
613
- ps: ./Build.ps1
714
artifacts:

0 commit comments

Comments
 (0)