forked from lqlau/WebSocket4Net
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Build-WP80.bat
34 lines (26 loc) · 1.79 KB
/
Build-WP80.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
34
@echo off
set fdir=%WINDIR%\Microsoft.NET\Framework
set msbuild=%fdir%\v4.0.30319\msbuild.exe
set sldir="%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\Profile\WindowsPhone80"
if not exist %sldir% (
set sldir="%ProgramFiles%\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\Profile\WindowsPhone80"
)
set outDir=bin\sl50-windowsphone80\Debug
%msbuild% WebSocket4Net.WP80\WebSocket4Net.WP80.csproj /p:Configuration=Debug;OutDir=..\%outDir% /t:Clean;Rebuild
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
"Tools\ILMerge" /keyfile:"websocket4net.snk" /targetplatform:v5,%sldir% /ndebug /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll %outDir%\BouncyCastle.Crypto.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\BouncyCastle.Crypto.dll
del %outDir%\*.pdb
set outDir=bin\sl50-windowsphone80\Release
%msbuild% WebSocket4Net.WP80\WebSocket4Net.WP80.csproj /p:Configuration=Release;OutDir=..\%outDir% /t:Clean;Rebuild
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
"Tools\ILMerge" /keyfile:"websocket4net.snk" /targetplatform:v5,%sldir% /ndebug /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll %outDir%\BouncyCastle.Crypto.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\BouncyCastle.Crypto.dll
del %outDir%\*.pdb
pause