Permalink
Browse files

Build updates.

  • Loading branch information...
jp2masa committed Nov 21, 2018
1 parent 6f2286d commit 16662024af783ebabefa5cb3ad23a8d7e6368dca
Showing with 10 additions and 8 deletions.
  1. +10 −8 Directory.Build.props
@@ -8,16 +8,18 @@
</PropertyGroup>
<PropertyGroup>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersionSuffix Condition="'$(APPVEYOR)' == 'True'">-build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</PackageVersionSuffix>
<!--
If it's a design-time build, we can't use current time, because it can
cause an infinite restore loop, as the property is always changing.
This means that, for project references in VS (and other IDEs), the
resolved version will be the stable one, i.e. without the
-localbuildyyyyMMddhhmmss suffix.
This property sets the suffix for local builds.
For example, if the value of this property is '100', the version will be x.y.z-localbuild100.
The property is empty by default as it's not really easy to generate a unique number per local build.
-->
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == '' AND '$(DesignTimeBuild)' != 'True'">-localbuild$([System.DateTime]::Now.ToString("yyyyMMdd"))</PackageVersionSuffix>
<PackageVersionLocalBuildSuffix></PackageVersionLocalBuildSuffix>
</PropertyGroup>
<PropertyGroup>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersionSuffix Condition="'$(APPVEYOR)' == 'True'">-build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == ''">-localbuild$(PackageVersionLocalBuildSuffix)</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'True'"></PackageVersionSuffix>
</PropertyGroup>

0 comments on commit 1666202

Please sign in to comment.