forked from andrewdavey/NotFoundMvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
29 lines (23 loc) · 753 Bytes
/
build.bat
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
REM http://docs.myget.org/docs/reference/custom-build-scripts
set config=%1
if "%config%" == "" (
set config=Release
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
set nuget=%nuget%
if "%nuget%" == "" (
set nuget=nuget
)
ECHO ** Package restore w/ %nuget%
cmd /c %nuget% restore "src\build.sln"
ECHO ---
ECHO ** Build / %config%
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild "src\build.sln" /t:rebuild /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=normal /nr:false
ECHO ---
ECHO ** Package pack w/ %nuget% / version: %version%
mkdir Build
cmd /c %nuget% pack "src\NotFoundMvc\NotFoundMvc.csproj" -symbols -o Build -p Configuration=%config% %version%