Skip to content

Commit

Permalink
Build updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp2masa committed Nov 21, 2018
1 parent adf1973 commit fc70ced
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Empty file removed Build/local_build_id.txt
Empty file.
11 changes: 10 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
<XSharpRepoRoot>$(RepoRoot)..\XSharp\</XSharpRepoRoot>
</PropertyGroup>

<PropertyGroup>
<!--
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.
-->
<PackageVersionLocalBuildSuffix></PackageVersionLocalBuildSuffix>
</PropertyGroup>

<PropertyGroup>
<PackageVersion>0.1.0</PackageVersion>
<PackageVersionSuffix Condition="'$(APPVEYOR)' == 'True'">-build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</PackageVersionSuffix>
Expand All @@ -22,7 +31,7 @@
resolved version will be the stable one, i.e. without the
-localbuildyyyyMMddhhmmss suffix.
-->
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == '' AND '$(DesignTimeBuild)' != 'True'">-localbuild$([System.IO.File]::ReadAllText('$(RepoRoot)build\local_build_id.txt'))</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(PackageVersionSuffix)' == '' AND '$(DesignTimeBuild)' != 'True'">-localbuild$(PackageVersionLocalBuildSuffix)</PackageVersionSuffix>
<PackageVersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'True'"></PackageVersionSuffix>
</PropertyGroup>

Expand Down

0 comments on commit fc70ced

Please sign in to comment.