Skip to content

Commit

Permalink
Use classic PowerShell to preserve environment across install/build s…
Browse files Browse the repository at this point in the history
…cripts
  • Loading branch information
nblumhardt committed Nov 14, 2022
1 parent e5deb43 commit 7e50b60
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: '{build}'
skip_tags: true
image: Visual Studio 2022
install:
- pwsh: mkdir -Force ".\build\" | Out-Null
- pwsh: $RequiredDotnetVersion = $(Get-Content ./global.json | ConvertFrom-Json).sdk.version
- pwsh: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- pwsh: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- pwsh: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- pwsh: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $RequiredDotnetVersion -InstallDir $env:DOTNET_INSTALL_DIR'
- pwsh: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: mkdir -Force ".\build\" | Out-Null
- ps: $RequiredDotnetVersion = $(Get-Content ./global.json | ConvertFrom-Json).sdk.version
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $RequiredDotnetVersion -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
build_script:
- pwsh: ./Build.ps1
test: off
Expand Down

0 comments on commit 7e50b60

Please sign in to comment.