forked from kerryjiang/WebSocket4Net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWebSocket4Net.build
33 lines (33 loc) · 2.93 KB
/
WebSocket4Net.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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<Configuration>Release</Configuration>
<SignParameter></SignParameter>
</PropertyGroup>
<Target Name="Build">
<MSBuild Projects="WebSocket4Net\WebSocket4Net.Net20.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\net20\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net\WebSocket4Net.Net35.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\net35\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net\WebSocket4Net.Net40.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\net40\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net\WebSocket4Net.Net45.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\net45\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net.Silverlight\WebSocket4Net.SL50.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\sl50\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net.WP80\WebSocket4Net.WP80.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\wp80\$(Configuration);$(SignParameter)"/>
<!--<MSBuild Projects="WebSocket4Net.UWP\WebSocket4Net.UWP.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\win\$(Configuration);$(SignParameter)"/>-->
<MSBuild Projects="WebSocket4Net.MonoDroid\WebSocket4Net.MonoDroid.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\monoandroid10\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net.MonoTouch\WebSocket4Net.MonoTouch.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\monotouch10\$(Configuration);$(SignParameter)"/>
<MSBuild Projects="WebSocket4Net.iOS\WebSocket4Net.iOS.csproj" Targets="Clean;Build" Properties="Configuration=$(Configuration);OutputPath=..\bin\xamarinios10\$(Configuration);$(SignParameter)"/>
<Exec Command="dotnet build -c $(Configuration) -f netstandard1.3 -o ..\..\bin\netstandard1.3\$(Configuration)" WorkingDirectory="dotnet\WebSocket4Net" />
</Target>
<Target Name="Pack">
<GetAssemblyIdentity AssemblyFiles="bin\net20\$(Configuration)\WebSocket4Net.dll">
<Output TaskParameter="Assemblies" ItemName="myAssemblyInfo"/>
</GetAssemblyIdentity>
<Message Text="WebSocket4Net Version: %(myAssemblyInfo.Version)" />
<Exec Command="nuget pack WebSocket4Net.nuspec -Properties version=%(myAssemblyInfo.Version)"/>
</Target>
<Target Name="BuildAndPack">
<PropertyGroup>
<SignParameter>SignAssembly=True;AssemblyOriginatorKeyFile=..\..\..\SignKeys\websocket4net.snk</SignParameter>
</PropertyGroup>
<CallTarget Targets="Build"/>
<CallTarget Targets="Pack"/>
</Target>
</Project>