-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.cmd
23 lines (19 loc) · 1013 Bytes
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo Off
SETLOCAL
SET NUGET=build\nuget.exe
set config=%1
if "%config%" == "" (
set config=Release
)
set version=%2
if "%version%" == "" (
set version=0.2.999
)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
rmdir artifacts /S /Q
mkdir artifacts
.\build\nuget.exe pack src\Code52.i18n.Tools\NuSpec\Code52.i18n.Tools.nuspec -Version %VERSION% -OutputDirectory artifacts
.\build\nuget.exe pack src\Code52.i18n.MVC\NuSpec\Code52.i18n.MVC3.nuspec -Version %VERSION% -OutputDirectory artifacts
.\build\nuget.exe pack src\Code52.i18n.MVC\NuSpec\Code52.i18n.MVC4.nuspec -Version %VERSION% -OutputDirectory artifacts
.\build\nuget.exe pack src\Code52.i18n.MVC3.Example\NuSpec\Code52.i18n.MVC3.Example.Razor.nuspec -Version %VERSION% -OutputDirectory artifacts
.\build\nuget.exe pack src\Code52.i18n.MVC4.Example\NuSpec\Code52.i18n.MVC4.Example.Razor.nuspec -Version %VERSION% -OutputDirectory artifacts