forked from SignalR/SignalR
/
Build.proj
38 lines (33 loc) · 1.9 KB
/
Build.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Go" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition="$(Configuration) == ''">Debug</Configuration>
<ProjectRoot>$(MSBuildProjectDirectory)\..</ProjectRoot>
<ArtifactsDir>$(ProjectRoot)\artifacts\$(Configuration)</ArtifactsDir>
<NuGetToolsPath>$(ProjectRoot)\.nuget</NuGetToolsPath>
<NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
</PropertyGroup>
<PropertyGroup>
<MajorVersion>0</MajorVersion>
<MinorVersion>5</MinorVersion>
<Version>$(MajorVersion).$(MinorVersion)</Version>
</PropertyGroup>
<Target Name="Go" DependsOnTargets="Build; BuildPackages">
</Target>
<Target Name="CreateOutputDir">
<MakeDir Directories="$(ArtifactsDir)" Condition="!Exists('$(ArtifactsDir)')" />
</Target>
<Target Name="Build" DependsOnTargets="CreateOutputDir">
<MSBuild Projects="$(ProjectRoot)\SignalR.sln" Targets="Build" Properties="Version=$(Version);PackageOutputDir=$(ArtifactsDir);Configuration=$(Configuration)" />
</Target>
<Target Name="BuildPackages">
<ItemGroup>
<JsPackage Include="$(ProjectRoot)\SignalR\Properties\SignalR.Js.nuspec" />
<MetaPackage Include="$(ProjectRoot)\SignalR\Properties\SignalR.All.nuspec" />
</ItemGroup>
<Exec Command=""$(NuGetExePath)" pack "%(JsPackage.Identity)" -o "$(ArtifactsDir)" -p Version=$(Version) -basePath "$(ProjectRoot)\SignalR" -Verbose"
LogStandardErrorAsError="true" />
<Exec Command=""$(NuGetExePath)" pack "%(MetaPackage.Identity)" -o "$(ArtifactsDir)" -p Version=$(Version) -exclude **\*.cs -Verbose"
LogStandardErrorAsError="true" />
</Target>
</Project>