forked from XeroAPI/Xero-NetStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
29 lines (23 loc) · 712 Bytes
/
build.bat
File metadata and controls
29 lines (23 loc) · 712 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
26
27
28
29
@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
)
rem About to restore packages
call %NuGet% restore
rem About to build solution
"%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" Xero.Api.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
mkdir Build
mkdir Build\lib
mkdir Build\lib\net40
rem About to pack Nugets
call %NuGet% pack "minimal.nuspec" -Symbols -OutputDirectory Build\lib\net40 -Version %version%
call %NuGet% pack "nuget.nuspec" -symbols -OutputDirectory Build\lib\net40 -Version %version%