48cd38cd92
also, avoid requiring a dependency on Microsoft.NETCore.Runtime fixes #157
14 lines
377 B
PowerShell
14 lines
377 B
PowerShell
$oldPath = $env:PATH
|
|
try {
|
|
# Put the stage2 output on the front of the path
|
|
$stage2 = "$PSScriptRoot\..\artifacts\win7-x64\stage2\bin"
|
|
if (Test-Path $stage2) {
|
|
$env:PATH="$stage2;$env:PATH"
|
|
} else {
|
|
Write-Host "You don't have a dev build in the 'artifacts\win7-x64\stage2' folder!"
|
|
}
|
|
|
|
dotnet @args
|
|
} finally {
|
|
$env:PATH = $oldPath
|
|
}
|