Skip to content

Commit

Permalink
Install-vs2017 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Arawn Davies committed Aug 13, 2017
1 parent 2f0a781 commit 240c4e8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions install-VS2017.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ cls

set NuGet=Build\Tools\nuget.exe
set VSWhere=Build\Tools\vswhere.exe
set IL2CPU=..\IL2CPU\IL2CPU.sln
set XS=..\XSharp\XSharp.sln

echo Finding XSharp repo directory
IF EXIST %XS% (echo XSharp solution found!) else (
echo XSharp not found!
goto NOI2CXS
)

echo Looking for IL2CPU repo directory...
IF EXIST %IL2CPU% (echo IL2CPU solution found!) else (
echo IL2CPU not found!
goto NOI2CXS )


:NuGet
echo Running NuGet restore
Expand All @@ -14,6 +28,7 @@ for /f "usebackq delims=" %%i in (`%VSWhere% -latest -version "[15.0,16.0)" -req
set InstallDir=%%i
)


if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
set MSBuild="%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"
)
Expand All @@ -22,4 +37,10 @@ if exist %MSBuild% (
%MSBuild% Builder.sln /nologo /maxcpucount /nodeReuse:false /p:Configuration="Debug" /p:Platform="Any CPU"
)


start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %1 %2 %3 %4 %5 %6 %7 %8 %9


:NOI2CXS
echo install-vs2017.bat failed to find the required IL2CPU or XSharp directories
echo Be sure to see the Cosmos documentation for instructions on building Cosmos

0 comments on commit 240c4e8

Please sign in to comment.