dotnet-installer/build.cmd
2015-10-18 23:29:51 -07:00

14 lines
461 B
Batchfile

@echo off
setlocal EnableDelayedExpansion
where dnvm
if %ERRORLEVEL% neq 0 (
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
set PATH=!PATH!;!USERPROFILE!\.dnx\bin
set DNX_HOME=!USERPROFILE!\.dnx
goto continue
)
:continue
call %~dp0scripts/bootstrap
if %errorlevel% neq 0 exit /b %errorlevel%