forked from lqlau/WebSocket4Net
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Build-MD.bat
33 lines (25 loc) · 1.62 KB
/
Build-MD.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
30
31
32
33
@echo off
set solutionDir=%cd%\
set fdir=%WINDIR%\Microsoft.NET\Framework
set msbuild=%fdir%\v4.0.30319\msbuild.exe
set mddir="%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0"
if not exist %mddir% (
set mddir="%ProgramFiles%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0"
)
set outDir=bin\md22\Debug
%msbuild% WebSocket4Net.MonoDroid\WebSocket4Net.MonoDroid.csproj /p:OutDir=..\%outDir%;Configuration=Debug /t:Clean;Rebuild
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
"Tools\ILMerge" /keyfile:"websocket4net.snk" /targetplatform:v4,%mddir% /ndebug /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\*.pdb
set outDir=bin\md22\Release
%msbuild% WebSocket4Net.MonoDroid\WebSocket4Net.MonoDroid.csproj /p:OutDir=..\%outDir%;Configuration=Release /t:Clean;Rebuild
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
"Tools\ILMerge" /keyfile:"websocket4net.snk" /targetplatform:v4,%mddir% /ndebug /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\*.pdb
pause