-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.proj
34 lines (25 loc) · 1.39 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
<?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>
<GitInfoReportImportance>high</GitInfoReportImportance>
<IntermediateOutputPath>build\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<NuGetPath Condition=" '$(NuGetPath)' == '' ">$(IntermediateOutputPath).nuget</NuGetPath>
<NuGetExe Condition=" '$(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 -Properties Configuration=$(Configuration)</Args>
</PropertyGroup>
<MakeDir Directories="out" Condition="!Exists('out')" />
<MSBuild Projects="src\Xamarin.Forms.Dynamic.sln" Properties="Configuration=$(Configuration);TrackFileAccess=$(TrackFileAccess)" />
<Exec Command='"$(NuGetExe)" Pack "src\Xamarin.Forms.Dynamic.nuspec" $(Args)' />
</Target>
<Import Project="build\packages\GitInfo\build\GitInfo.targets" />
</Project>