This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.proj
43 lines (36 loc) · 1.94 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
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NuGetPath Condition=" '$(NuGetPath)'=='' ">Nuget.exe</NuGetPath>
</PropertyGroup>
<ItemGroup>
<Solution Include="$(MSBuildThisFileDirectory)*.sln"/>
</ItemGroup>
<Target Name="RestorePackages">
<Message Importance="High" Text="Restoring nuget packages..." />
<Exec Command=""$(NuGetPath)" restore "%(Solution.Identity)"" />
</Target>
<Target Name="CreateNuGetPackage">
<Message Importance="High" Text="Creating nuget packages..." />
<Exec Command=""$(NuGetPath)" pack -Properties Configuration=ReleaseNET461 -IncludeReferencedProjects -Symbols "webhoseio\webhoseio.csproj"" />
</Target>
<Target Name="Clean">
<MSBuild Targets="Clean" Projects="@(Solution)" />
</Target>
<Target Name="Build" DependsOnTargets="RestorePackages">
<MSBuild Targets="Build" Projects="@(Solution)" Properties="Configuration=ReleaseNET35" />
<MSBuild Targets="Build" Projects="@(Solution)" Properties="Configuration=ReleaseNET40" />
<MSBuild Targets="Build" Projects="@(Solution)" Properties="Configuration=ReleaseNET45" />
<MSBuild Targets="Build" Projects="@(Solution)" Properties="Configuration=ReleaseNET461" />
<CallTarget Targets="CreateNuGetPackage" />
</Target>
<Target Name="Rebuild" DependsOnTargets="RestorePackages">
<MSBuild Targets="Rebuild" Projects="@(Solution)" Properties="Configuration=ReleaseNET35" />
<MSBuild Targets="Rebuild" Projects="@(Solution)" Properties="Configuration=ReleaseNET40" />
<MSBuild Targets="Rebuild" Projects="@(Solution)" Properties="Configuration=ReleaseNET45" />
<MSBuild Targets="Rebuild" Projects="@(Solution)" Properties="Configuration=ReleaseNET461" />
<CallTarget Targets="CreateNuGetPackage" />
</Target>
</Project>