File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,13 @@ version: '{build}'
2
2
skip_tags : true
3
3
image : Visual Studio 2022
4
4
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"
5
12
build_script :
6
13
- ps : ./Build.ps1
7
14
artifacts :
You can’t perform that action at this time.
0 commit comments