From 240c4e8a0106bda116ebf997c0afa83d0eea6b1a Mon Sep 17 00:00:00 2001 From: Arawn Davies Date: Sun, 13 Aug 2017 14:32:57 +0100 Subject: [PATCH] Install-vs2017 checks --- install-VS2017.bat | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/install-VS2017.bat b/install-VS2017.bat index c9bf759dd..c4c4bf59e 100644 --- a/install-VS2017.bat +++ b/install-VS2017.bat @@ -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 @@ -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" ) @@ -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 \ No newline at end of file