forked from carwilki/hydrospanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
26 lines (22 loc) · 1.11 KB
/
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
24
25
26
@echo off
set path=%path%;C:/Windows/Microsoft.NET/Framework/v4.0.30319;
set EnableNuGetPackageRestore=true
echo Building project...
msbuild src/Hydrospanner.sln /nologo /v:q /p:Configuration=Release /t:Clean
msbuild src/Hydrospanner.sln /nologo /v:q /p:Configuration=Release /clp:ErrorsOnly
echo Merging assemblies...
if exist "publish" rmdir /s /q "publish"
mkdir publish\bin
mkdir publish\pkg
bin\ILMerge.exe /keyfile:src\Hydrospanner.snk /internalize /wildcards /target:library ^
/targetplatform:"v4,C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" ^
/out:"publish\bin\Hydrospanner.dll" ^
"src/Hydrospanner/bin/Release/Hydrospanner.dll" ^
"src/Hydrospanner/bin/Release/Atomic.dll" ^
"src/Hydrospanner/bin/Release/Disruptor.dll" ^
"src/Hydrospanner/bin/Release/Newtonsoft.Json.dll" ^
"src/Hydrospanner/bin/Release/RabbitMQ.Client.dll" ^
"src/Hydrospanner/bin/Release/System.IO.Abstractions.dll"
echo Creating NuGet packages...
for /r %%i in (src\packages\Hydrospanner*.nuspec) do src\.nuget\nuget.exe pack %%i -symbols -OutputDirectory publish\pkg
echo Done.