2015-12-28 19:47:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#
|
|
|
|
|
2015-11-18 02:02:28 +00:00
|
|
|
# Put the stage2 output on the front of the path
|
2016-03-24 16:36:05 +00:00
|
|
|
$stage2 = "$PSScriptRoot\..\artifacts\win10-x64\stage2"
|
2015-11-18 02:02:28 +00:00
|
|
|
if (Test-Path $stage2) {
|
|
|
|
$splat = $env:PATH.Split(";")
|
|
|
|
$stage2 = Convert-Path $stage2
|
|
|
|
if ($splat -notcontains $stage2) {
|
|
|
|
$env:PATH="$stage2;$env:PATH"
|
|
|
|
}
|
|
|
|
} else {
|
2016-02-16 18:57:11 +00:00
|
|
|
Write-Host "You don't have a dev build in the 'artifacts\win10-x64\stage2' folder!"
|
2015-11-18 02:02:28 +00:00
|
|
|
}
|