This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
/
SuperSocket.ClientEngine.build
46 lines (46 loc) · 4 KB
/
SuperSocket.ClientEngine.build
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<Configuration>Release</Configuration>
<KeyFile>..\..\SignKeys\SuperSocket.ClientEngine.snk</KeyFile>
</PropertyGroup>
<Target Name="Build">
<CallTarget Targets="BuildWithoutEasyClient"/>
<CallTarget Targets="BuildWithEasyClient"/>
</Target>
<Target Name="BuildAndPack">
<CallTarget Targets="Build"/>
<CallTarget Targets="Pack"/>
</Target>
<Target Name="Pack">
<GetAssemblyIdentity AssemblyFiles="output\net20\$(Configuration)\SuperSocket.ClientEngine.dll">
<Output TaskParameter="Assemblies" ItemName="myAssemblyInfo"/>
</GetAssemblyIdentity>
<Message Text="SuerSocket.ClientEngine Version: %(myAssemblyInfo.Version)" />
<Exec Command="nuget pack SuperSocket.ClientEngine.Core.nuspec -Properties version=%(myAssemblyInfo.Version)"/>
<Exec Command="nuget pack SuperSocket.ClientEngine.nuspec -Properties version=%(myAssemblyInfo.Version)"/>
</Target>
<Target Name="BuildWithoutEasyClient">
<PropertyGroup>
<NoEasyClient>true</NoEasyClient>
</PropertyGroup>
<Exec Command="nuget restore SuperSocket.ClientEngine.Net.sln"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net20.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output_core\net20\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net35.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output_core\net35-client\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net40.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output_core\net40-client\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net45.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output_core\net45\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<Exec Command="dotnet restore" WorkingDirectory="SuperSocket.ClientEngine.Core" />
<Exec Command="dotnet build -c $(Configuration) -f netstandard1.3 -o ..\output_core\netstandard1.3\$(Configuration) /p:SignAssembly=True /p:AssemblyOriginatorKeyFile=..\..\..\SignKeys\SuperSocket.ClientEngine.snk" WorkingDirectory="SuperSocket.ClientEngine.Core" />
</Target>
<Target Name="BuildWithEasyClient">
<PropertyGroup>
<NoEasyClient>false</NoEasyClient>
</PropertyGroup>
<Exec Command="nuget restore SuperSocket.ClientEngine.Net.sln"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net20.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output\net20\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net35.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output\net35-client\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net40.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output\net40-client\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<MSBuild Projects="SuperSocket.ClientEngine.Net45.csproj" Targets="Clean;Build" Properties="Configuration=Release;OutputPath=output\net45\$(Configuration);NoEasyClient=$(NoEasyClient);SignAssembly=True;AssemblyOriginatorKeyFile=$(KeyFile)"/>
<Exec Command="dotnet restore" WorkingDirectory="SuperSocket.ClientEngine" />
<Exec Command="dotnet build -c $(Configuration) -f netstandard1.3 -o ..\output\netstandard1.3\$(Configuration) /p:SignAssembly=True /p:AssemblyOriginatorKeyFile=..\..\..\SignKeys\SuperSocket.ClientEngine.snk" WorkingDirectory="SuperSocket.ClientEngine" />
</Target>
</Project>