forked from cloudfoundry-attic/cf-iis8-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.proj
31 lines (27 loc) · 1.12 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 DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Available Targets:
/t:Package
Builds NuGet packages using the binaries folder contents.
The packages will drop to .\binaries\packages.
-->
<PropertyGroup>
<major>1</major>
<minor>3</minor>
<revision>0</revision>
<build Condition="'$(BUILD_NUMBER)' == ''">0</build>
<build Condition="'$(BUILD_NUMBER)' != ''">$(BUILD_NUMBER)</build>
<commit Condition="'$(GIT_COMMIT)' == ''">?</commit>
<commit Condition="'$(GIT_COMMIT)' != ''">$(GIT_COMMIT)</commit>
<version>$(major).$(minor).$(revision).$(build)</version>
</PropertyGroup>
<PropertyGroup>
<LibraryRoot>$(MSBuildThisFileDirectory)</LibraryRoot>
<NuGetCommand>"$(LibraryRoot).nuget\nuget.exe"</NuGetCommand>
</PropertyGroup>
<!-- Target for creating the nuget package -->
<Target Name="NugetPack">
<Exec Command="$(NuGetCommand) pack "$(LibraryRoot)\cf-iis8-buildpack.nuspec" -Prop commit=$(commit);version=$(version)"/>
</Target>
</Project>