Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #70 from manuelroemer/develop
Browse files Browse the repository at this point in the history
Updated Build pipeline to work with SemVer 1.0 because of NuGet.
  • Loading branch information
manuelroemer authored Nov 9, 2018
2 parents 80f6ed4 + 1d576fe commit 38b9001
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger:
- master

name: $(versionMajor).$(versionMinor).$(versionPatch)$(versionSuffix)+ci-$(Build.BuildId)
name: $(releaseVersion)+ci-$(Build.BuildId)

pool:
vmImage: 'VS2017-Win2016'
Expand All @@ -10,10 +10,7 @@ variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
versionMajor: 0
versionMinor: 1
versionPatch: 1
versionSuffix: '' # If set, must start with "-", e.g. "-beta"
releaseVersion: '0.1.2' # This needs to be incremented manually and should follow SemVer 1.0.

steps:
# Install NuGet packages and do a nuget restore.
Expand Down
7 changes: 4 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project>

<PropertyGroup>
<!-- Global assembly values. -->
<Version Condition=" '$(BUILD_BUILDNUMBER)' != '' ">$(BUILD_BUILDNUMBER)</Version>
<Version Condition=" '$(BUILD_BUILDNUMBER)' == ''">0.0.0-unknown</Version>
<!-- Dynamically build the version from the Build environment's paramters.
We want a SemVer1.0 version, since that is the best for NuGet. -->
<Version Condition=" '$(ReleaseVersion)' != '' ">$(ReleaseVersion)</Version>
<Version Condition=" '$(ReleaseVersion)' == ''">0.0.0-unknown</Version>
<NeutralLanguage>en</NeutralLanguage>

<!-- We require C# 7.2 at the very least. Might as well use the latest version. -->
Expand Down

0 comments on commit 38b9001

Please sign in to comment.