forked from UhuruSoftware/openshift.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_dev.bat
36 lines (22 loc) · 1013 Bytes
/
build_dev.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo Assuming msbuild is here: %WINDIR%\Microsoft.NET\Framework\v4.0.30319
set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
:: Clean output dir first
echo Cleaning .NET assemblies ...
call %msBuildDir%\msbuild.exe /t:Clean %~dp0\node\src\openshift-dotnet\openshift-dotnet.sln /p:Configuration=Debug /p:Platform="x64"
if %errorlevel% neq 0 goto build_error
echo Cleaning cartridges ...
call %msBuildDir%\msbuild.exe /t:Clean %~dp0\cartridges\cartridges.sln /p:Configuration=Debug /p:Platform="x64"
if %errorlevel% neq 0 goto build_error
:: Build
echo Building .NET assemblies ...
call %msBuildDir%\msbuild.exe %~dp0\node\src\openshift-dotnet\openshift-dotnet.sln /p:Configuration=Debug /p:Platform="x64"
if %errorlevel% neq 0 goto build_error
echo Building cartridges ...
call %msBuildDir%\msbuild.exe %~dp0\cartridges\cartridges.sln /p:Configuration=Debug /p:Platform="x64"
if %errorlevel% neq 0 goto build_error
set msBuildDir=
exit /b 0
:build_error
echo Build failed
exit /b 1