-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildRhino8.bat
35 lines (29 loc) · 931 Bytes
/
BuildRhino8.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
call "CommonVariables.bat"
call "%VsDevTools%"
set Configuration=ReleaseR8
REM prepare build Yak package
set Stage=PrepareBuildYakPackage
msbuild /t:%Stage% /p:Configuration=%Configuration% %Name%.sln || GOTO error
REM build
set Stage=restore
msbuild /t:%Stage% /p:Configuration=%Configuration% %Name%.sln || GOTO error
set Stage=build
msbuild /t:%Stage% /p:Configuration=%Configuration% /p:TreatWarningsAsErrors=true %Name%.sln || GOTO error
REM build Yak package
set Stage=BuildYakPackage
msbuild /t:%Stage% /p:Configuration=%Configuration% PluginGrasshopper\PluginGrasshopper.csproj || GOTO error
:done
if "%~1"=="" (
set /p=Done. Hit ENTER to close...
%SystemRoot%\explorer.exe %YakTargetDir%
)
exit /b 0
:error
if "%~1"=="" (
if "%Stage%"=="" (
set /p=An error happened. Hit ENTER to close...
) else (
set /p=An error happened in stage %Stage%. Hit ENTER to close...
)
)
exit /b 1