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.ObjectModel.proj
57 lines (49 loc) · 2.97 KB
/
Digillect.ObjectModel.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(DigillectBuildToolsPath)\Digillect.Build.Packaging.Nuget.props" Condition="'$(DigillectBuildToolsPath)' != '' And Exists('$(DigillectBuildToolsPath)\Digillect.Build.Packaging.Nuget.props')" />
<PropertyGroup>
<BuildPath>$(MSBuildProjectDirectory)\target\$(Configuration)\bin\</BuildPath>
<OutputPath>$(MSBuildProjectDirectory)\target\$(Configuration)\package\</OutputPath>
<VersionAssembly>$(BuildPath)netstandard1.0\Digillect.ObjectModel.dll</VersionAssembly>
</PropertyGroup>
<Import Project="$(DigillectBuildToolsPath)\Digillect.Build.Packaging.NuGet.targets" Condition="'$(DigillectBuildToolsPath)' != '' And Exists('$(DigillectBuildToolsPath)\Digillect.Build.Packaging.Nuget.targets')" />
<Target Name="BeforePackage">
<PropertyGroup>
<_PackageExcludeList>$(BuildPath)**\*.xml.old;$(BuildPath)**\*.dll.config;$(BuildPath)**\CodeContractsDeclarative\**</_PackageExcludeList>
</PropertyGroup>
<ItemGroup>
<NuPkgLib Include="$(BuildPath)net40\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>net40</FxTarget>
<FxProfile>client</FxProfile>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)sl4\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>sl4</FxTarget>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)wp71\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>wp71</FxTarget>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)wp71\Microsoft.Contracts.dll">
<FxTarget>wp71</FxTarget>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)netstandard1.0\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>netstandard1.0</FxTarget>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)netstandard1.0\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>net45</FxTarget>
</NuPkgLib>
<NuPkgLib Include="$(BuildPath)netstandard1.0\**\Digillect.ObjectModel.*" Exclude="$(_PackageExcludeList)">
<FxTarget>wp8</FxTarget>
</NuPkgLib>
</ItemGroup>
</Target>
<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>