forked from kerryjiang/WebSocket4Net
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Build.bat
82 lines (58 loc) · 4.16 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@echo off
set fdir=%WINDIR%\Microsoft.NET\Framework64
if not exist %fdir% (
set fdir=%WINDIR%\Microsoft.NET\Framework
)
set msbuild=%fdir%\v4.0.30319\msbuild.exe
set outDir=bin\net40\Debug
%msbuild% WebSocket4Net\WebSocket4Net.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:v4 /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\net40\Release
%msbuild% WebSocket4Net\WebSocket4Net.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:v4 /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\net35\Debug
%msbuild% WebSocket4Net\WebSocket4Net.Net35.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:v2 /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
sdxxdddddddddds
set outDir=bin\net35\Release
%msbuild% WebSocket4Net\WebSocket4Net.Net35.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:v2 /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\net20\Debug
%msbuild% WebSocket4Net\WebSocket4Net.Net20.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:v2 /ndebug /allowDup /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll %outDir%\Newtonsoft.Json.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\Newtonsoft.Json.dll
del %outDir%\*.pdb
set outDir=bin\net20\Release
%msbuild% WebSocket4Net\WebSocket4Net.Net20.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:v2 /ndebug /allowDup /out:%outDir%\WebSocket4Net.dll %outDir%\WebSocket4Net.dll %outDir%\SuperSocket.ClientEngine.Common.dll %outDir%\SuperSocket.ClientEngine.Core.dll %outDir%\SuperSocket.ClientEngine.Protocol.dll %outDir%\Newtonsoft.Json.dll
del %outDir%\SuperSocket.ClientEngine.Common.dll
del %outDir%\SuperSocket.ClientEngine.Core.dll
del %outDir%\SuperSocket.ClientEngine.Protocol.dll
del %outDir%\Newtonsoft.Json.dll
del %outDir%\*.pdb
pause