forked from dotnet/core-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.ps1
16 lines (13 loc) · 563 Bytes
/
run.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# set the base tools directory
$toolsLocalPath = Join-Path $PSScriptRoot "Tools"
$restorePackagesPath = Join-Path $PSScriptRoot "packages"
# We do not want to run the first-time experience.
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
$initTools = Join-Path $PSScriptRoot "init-tools.cmd"
& $initTools
# execute the tool using the dotnet.exe host
$dotNetExe = Join-Path $toolsLocalPath "dotnetcli\dotnet.exe"
$runExe = Join-Path $toolsLocalPath "run.exe"
$runConfig = Join-Path $PSScriptRoot "config.json"
& $dotNetExe $runExe $runConfig $args
exit $LastExitCode