forked from MyGet/SyntaxTree.FastSpring.Api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
25 lines (20 loc) · 820 Bytes
/
build.bat
File metadata and controls
25 lines (20 loc) · 820 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=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
REM Package restore
REM tools\nuget.exe restore src\SyntaxTree.FastSpring.Api.sln -OutputDirectory %cd%\src\packages -NonInteractive
REM Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\SyntaxTree.FastSpring.Api.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
REM Package
mkdir release
mkdir release\nuget
tools\nuget.exe pack "src\SyntaxTree.FastSpring.Api\SyntaxTree.FastSpring.Api.csproj" -symbols -o release\nuget -p Configuration=%config% %version%
REM Plain assemblies
mkdir release\assemblies
copy src\SyntaxTree.FastSpring.Api\bin\%config%\SyntaxTree.FastSpring*.dll release\assemblies