This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Digillect.Mvvm.WindowsPhone.proj
38 lines (30 loc) · 2.08 KB
/
Digillect.Mvvm.WindowsPhone.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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildToolsVersion Condition="'$(BuildToolsVersion)' == ''">2.0.0</BuildToolsVersion>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<BuildPath>$(MSBuildProjectDirectory)\target\$(Configuration)\bin\</BuildPath>
<OutputPath>$(MSBuildProjectDirectory)\target\$(Configuration)\package\</OutputPath>
<VersionAssembly>$(BuildPath)\wp80\Digillect.Mvvm.WindowsPhone.dll</VersionAssembly>
</PropertyGroup>
<Import Project="$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Packaging.Nuget.props" />
<PropertyGroup>
<_PackageExcludeList>$(BuildPath)**\*.xml.old;$(BuildPath)**\*.dll.config</_PackageExcludeList>
</PropertyGroup>
<ItemGroup>
<LibWP71 Include="$(BuildPath)wp71\**\Digillect.Mvvm.WindowsPhone.*" Exclude="$(_PackageExcludeList)" />
<LibWP80 Include="$(BuildPath)wp80\**\Digillect.Mvvm.WindowsPhone.*" Exclude="$(_PackageExcludeList)" />
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Packaging.NuGet.targets" />
<Target Name="TransformPackageVersion">
<PropertyGroup>
<_PackageBuildNumber>$([System.Text.RegularExpressions.Regex]::Match($(PackageVersion), "^\d+\.\d+\.\d+\.(\d+)").Groups[1].Value)</_PackageBuildNumber>
<PackageVersion>$([System.Text.RegularExpressions.Regex]::Replace($(PackageVersion), "^(\d+\.\d+\.\d+)\.\d+(.*)$", "$1$2"))</PackageVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(BranchName)' != '' And '$(BranchName)' != 'master'">
<PackageVersion>$(PackageVersion)-$(BranchName)</PackageVersion>
<PackageVersion Condition="'$(_PackageBuildNumber)' != ''">$(PackageVersion)-$([System.String]::Format("{0:00000}", $([MSBuild]::Add($(_PackageBuildNumber), 0))))</PackageVersion>
</PropertyGroup>
</Target>
</Project>