-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbuild.bat
More file actions
25 lines (19 loc) · 741 Bytes
/
build.bat
File metadata and controls
25 lines (19 loc) · 741 Bytes
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
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)
set nuget=
if "%nuget%" == "" (
set nuget=nuget
)
call %nuget% restore EmmaSharp\packages.config -OutputDirectory %cd%\packages -NonInteractive
"%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" EmmaSharp.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false /p:BuildInParallel=true /p:RestorePackages=true /t:Clean,Rebuild
mkdir build
mkdir build\lib
mkdir build\lib\net46
%nuget% pack "EmmaSharp\EmmaSharp.csproj" -IncludeReferencedProjects -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"