dotnet-rbroker-framework/build.bat

76 строки
1.8 KiB
Batchfile
Исходник Обычный вид История

2015-02-03 05:25:33 +03:00
@echo off
::Capture the current dir
set ROOT_DIR=%CD%
::specify the version of the library
2016-05-06 22:30:15 +03:00
set VERSION=8.0.5
2015-02-03 05:25:33 +03:00
::set the configuration (Release or Debug)
set CONFIG=Release
2016-01-05 23:32:05 +03:00
::set the platform (x86,x64,Any CPU)
set PLATFORM="Any CPU"
2015-02-03 05:25:33 +03:00
::
::
::DEPLOYR BROKER FRAMEWORK LIBRARY CONFIGURATION
::
::
::IMPORTANT!!!!
::set the location where referenced assemblies can be found (Broker depends on previously built deployr client library files)
::you will have to adjust this path as necessary
2015-02-05 23:28:33 +03:00
set BROKER_LIB_REF_PATH=%ROOT_DIR%\..\dotnet-client-library\release
2015-02-03 05:25:33 +03:00
::define output dir
set BROKER_LIB_OUTDIR=%ROOT_DIR%\release\
2016-01-05 10:46:18 +03:00
::define which version of msbuild we are going to use (Broker lib uses .NET 4.5.1)
set DOTNET_4.5_BUILD_EXE=C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild
2015-02-03 05:25:33 +03:00
::specify the location of the source solution file (i.e. DeployRBroker.sln)
set BROKER_LIB_SRC_DIR=%ROOT_DIR%\src
::specify broker zip command
set BROKER_ZIP_CMD=zip DeployR-DotNet-RBroker-%VERSION%.zip *.dll
::
::
::DEPLOYR BROKER FRAMEWORK LIBRARY BUILD
::
::
::delete the output directory
if exist %BROKER_LIB_OUTDIR% rmdir %BROKER_LIB_OUTDIR% /s /q
::build the library
cd %BROKER_LIB_SRC_DIR%
2016-01-05 10:46:18 +03:00
%DOTNET_4.5_BUILD_EXE% /p:Configuration=%CONFIG%;Platform=%PLATFORM%;ReferencePath=%BROKER_LIB_REF_PATH%;OutDir=%BROKER_LIB_OUTDIR% /t:Clean;Rebuild
2015-02-03 05:25:33 +03:00
::create the zip file
if exist %BROKER_LIB_OUTDIR% (
cd %BROKER_LIB_OUTDIR%
%BROKER_ZIP_CMD%
)
::
::
::HELP FILE
::
::
::Broker lib Sandcastle Help File Builder project file
set BROKER_LIB_HELP_PROJECT=%ROOT_DIR%\help\DeployRBroker.shfbproj
:build broker lib help file
cd %BROKER_LIB_SRC_DIR%
2016-01-05 10:46:18 +03:00
set PLATFORM=
%DOTNET_4.5_BUILD_EXE% /p:Configuration=%CONFIG%;ReferencePath=%BROKER_LIB_SRC_DIR%;OutDir=%BROKER_LIB_OUTDIR%;OutputPath=%BROKER_LIB_OUTDIR% %BROKER_LIB_HELP_PROJECT%
2015-02-03 05:25:33 +03:00
::reset the directory
cd %ROOT_DIR%