forked from devlooped/GitInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.proj
31 lines (23 loc) · 1.18 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<NuGetPath>$(MSBuildThisFileDirectory).nuget</NuGetPath>
<NuGetExe>$(NuGetPath)\NuGet.exe</NuGetExe>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<NuGetExe>nuget</NuGetExe>
</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')" />
<Exec Command='"$(NuGetExe)" Pack "src\GitInfo\GitInfo.nuspec" $(Args)' />
<!-- Update AppVeyor build # to match the actual one being used -->
<Exec Command="appveyor UpdateBuild -Version $(Version)" Condition=" '$(APPVEYOR)' == 'true' "
ConsoleToMSBuild="true"
ContinueOnError="WarnAndContinue" />
</Target>
<Import Project="src\GitInfo\build\GitInfo.targets" />
</Project>