forked from devlooped/System.Diagnostics.Tracer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
29 lines (22 loc) · 1.37 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<IntermediateOutputPath>.nuget\</IntermediateOutputPath>
<Out Condition=" '$(Out)' == '' ">$(MSBuildThisFileDirectory)out</Out>
<PackagesPath>$(IntermediateOutputPath)packages</PackagesPath>
</PropertyGroup>
<Target Name="Build" DependsOnTargets="GitVersion">
<PropertyGroup>
<Version>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)</Version>
<Args>-Version $(Version) -NoPackageAnalysis -NonInteractive -OutputDirectory "$(Out)"</Args>
</PropertyGroup>
<MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" />
<MSBuild Projects="src\System.Diagnostics.Tracer.sln" Properties="Configuration=$(Configuration)" />
<Exec Command="$(PackagesPath)\gitlink\lib\net45\GitLink.exe . -f src\System.Diagnostics.Tracer.sln -u https://github.com/kzu/System.Diagnostics.Tracer -b "$(GitBranch)" -c "$(Configuration)""
StandardOutputImportance="low" />
<Exec Command='"$(NuGet)" Pack "src\System.Diagnostics.Tracer.nuspec" $(Args)' />
</Target>
<Import Project="$(PackagesPath)\GitInfo\build\GitInfo.targets" />
<Import Project="src\NuGet.Restore.targets" />
</Project>