mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
Install-vs2017 checks
This commit is contained in:
parent
2f0a781254
commit
240c4e8a01
1 changed files with 21 additions and 0 deletions
|
|
@ -3,6 +3,20 @@ cls
|
||||||
|
|
||||||
set NuGet=Build\Tools\nuget.exe
|
set NuGet=Build\Tools\nuget.exe
|
||||||
set VSWhere=Build\Tools\vswhere.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
|
:NuGet
|
||||||
echo Running NuGet restore
|
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
|
set InstallDir=%%i
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
|
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
|
||||||
set MSBuild="%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"
|
%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
|
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
|
||||||
Loading…
Reference in a new issue