Skip to content

Commit

Permalink
Added and updated cmd files to support picking the latest rc2 runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Jan 7, 2016
1 parent e123780 commit 854fbb6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
12 changes: 12 additions & 0 deletions scripts/Bootstrap-coreclr.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
SETLOCAL

for /F "delims=" %%I in ('dir %USERPROFILE%\.dnx\runtimes\dnx-coreclr-win-*-rc2-* /b /ad /on') do set RUNTIME=%%I
rem make sure we're bootstrapped
for /f "delims=" %%a in ('%~dp0Bootstrap.cmd') do @set LOCATION=%%a
echo exist %LOCATION%\project.lock.json
if not exist %LOCATION%\project.lock.json (
call "%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnu.cmd" restore %LOCATION%
)
echo %LOCATION%

"%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnx" %LOCATION% run %*
6 changes: 4 additions & 2 deletions scripts/Bootstrap.cmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
SETLOCAL

for /F "delims=" %%I in ('dir %USERPROFILE%\.dnx\runtimes\dnx-clr-win-*-rc2-* /b /ad /on') do set RUNTIME=%%I
rem make sure we're bootstrapped
for /f "delims=" %%a in ('%~dp0Bootstrap.cmd') do @set LOCATION=%%a
echo exist %LOCATION%\project.lock.json
if not exist %LOCATION%\project.lock.json (
call "%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-16337\bin\dnu.cmd" restore %LOCATION%
call "%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnu.cmd" restore %LOCATION%
)
echo %LOCATION%
"%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-16337\bin\dnx" %LOCATION% run %*

"%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnx" %LOCATION% run %*
4 changes: 4 additions & 0 deletions scripts/Omnisharp-coreclr.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SETLOCAL

for /F "delims=" %%I in ('dir %USERPROFILE%\.dnx\runtimes\dnx-coreclr-win-*-rc2-* /b /ad /on') do set RUNTIME=%%I
"%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnx" -p %~dp0..\src\OmniSharp run %*
3 changes: 2 additions & 1 deletion scripts/Omnisharp.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SETLOCAL

"%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-16337\bin\dnx" -p %~dp0..\src\OmniSharp run %*
for /F "delims=" %%I in ('dir %USERPROFILE%\.dnx\runtimes\dnx-clr-win-*-rc2-* /b /ad /on') do set RUNTIME=%%I
"%USERPROFILE%\.dnx\runtimes\%RUNTIME%\bin\dnx" -p %~dp0..\src\OmniSharp run %*

0 comments on commit 854fbb6

Please sign in to comment.