This repository was archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.bat
More file actions
38 lines (27 loc) · 1.27 KB
/
Build.bat
File metadata and controls
38 lines (27 loc) · 1.27 KB
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
37
38
SET Configuration=Release
SET Action=Build
SET UserTarget=Build
SET ResultDir=.\Results
SET BuildFile=ninject.extensions.staticproxy.sln
SET BuildLogFile=%BuildFile%
SET MSBuildPath=%ProgramFiles(x86)%\MSBuild\14.0\Bin\
SET MSBuildParameters=/maxcpucount /nodeReuse:false /nologo /detailedsummary /consoleloggerparameters:Summary;Verbosity=minimal
SET MSBuildFileLogParameters=/fl1 /flp1:Summary;Verbosity=normal;LogFile=%BuildLogFile%.log
SET MSBuildErrorFileLogParameters=/fl2 /flp2:NoSummary;ErrorsOnly;LogFile=%BuildLogFile%.errors.log
SET MSBuildWarningFileLogParameters=/fl3 /flp3:NoSummary;WarningsOnly;LogFile=%BuildLogFile%.warnings.log
nuget restore %BuildFile%
IF ERRORLEVEL 1 GOTO Failed
"%MSBuildPath%\MSBUILD.EXE" %BuildFile% /t:%UserTarget% %MSBuildParameters% %MSBuildFileLogParameters% %MSBuildErrorFileLogParameters% %MSBuildWarningFileLogParameters%
IF ERRORLEVEL 1 GOTO Failed
gitlink.exe . -f %BuildFile% -ignore Integration,Integration.Tests,Ninject.Extensions.StaticProxy.Tests
IF ERRORLEVEL 1 GOTO Failed
nuget pack ".\ninject.extensions.staticproxy\ninject.extensions.staticproxy.csproj" -Version "0.2.1.1"
IF ERRORLEVEL 1 GOTO Failed
CALL %PrintSuccessful%
GOTO End
:Failed
CALL %PrintFailed%
:End
CALL %PrintTime%
rem pause if double clicked only
if %0 == "%~0" pause