mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
26 lines
733 B
Batchfile
26 lines
733 B
Batchfile
@echo off
|
|
cls
|
|
|
|
set NuGet=Build\Tools\nuget.exe
|
|
set VSWhere=Build\Tools\vswhere.exe
|
|
|
|
:NuGet
|
|
echo Running NuGet restore
|
|
%NuGet% restore Builder.sln
|
|
%NuGet% restore Cosmos.sln
|
|
|
|
:MSBuild
|
|
echo Looking for MSBuild
|
|
for /f "usebackq tokens=1* delims=: " %%i in (`%VSWhere% -latest -version "[15.0,16.0)" -requires "Microsoft.Component.MSBuild" -property "installationPath"`) do (
|
|
set InstallDir=%%j
|
|
)
|
|
|
|
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
|
|
set MSBuild="%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"
|
|
)
|
|
|
|
if exist %MSBuild% (
|
|
%MSBuild% Builder.sln /nologo /maxcpucount /p:Configuration="Debug" /p:Platform="Any CPU"
|
|
)
|
|
|
|
"source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-bat" "-VS2017" "-VSPATH=%InstallDir%"
|