Skip to content

Commit b26b6cd

Browse files
authored
Install .NET Core 2.1 (#331)
1 parent 7523e99 commit b26b6cd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.appveyor.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
#---------------------------------#
22
# Build Image #
33
#---------------------------------#
4-
# Cake recipe requires .NET Core 2.1 which is not available on newer images
5-
image: Visual Studio 2019
4+
image: Visual Studio 2022
5+
6+
#---------------------------------#
7+
# Install .NET #
8+
#---------------------------------#
9+
install:
10+
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
11+
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
12+
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
13+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 2.1.818 -InstallDir $env:DOTNET_INSTALL_DIR'
14+
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
15+
- ps: dotnet --info
616

717
#---------------------------------#
818
# Build Script #

0 commit comments

Comments
 (0)