Skip to content

Commit 237f01c

Browse files
Configure independent version tracks for main packages (3.0.0-rc1) and LOGGING packages (3.0.0-beta3)
1 parent 0f95528 commit 237f01c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.props/_GlobalStaticVersion.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<SemanticVersionMajor>3</SemanticVersionMajor>
1414
<SemanticVersionMinor>0</SemanticVersionMinor> <!-- If changing the Minor version, also update the Date value. -->
1515
<SemanticVersionPatch>0</SemanticVersionPatch>
16-
<PreReleaseMilestone>beta2</PreReleaseMilestone> <!--Valid values for an Application Insights release: beta1, beta2, EMPTY for stable. If you build your application locally, you can use any value. -->
16+
<PreReleaseMilestone>rc1</PreReleaseMilestone> <!--Valid values for an Application Insights release: beta1, beta2, rc1, EMPTY for stable. Subdirectory Directory.Build.props can override for independent release tracks. -->
1717
<PreReleaseMilestone Condition="'$(Redfield)' == 'True'">redfield</PreReleaseMilestone>
1818
<PreReleaseMilestone Condition="'$(NightlyBuild)' == 'True'">nightly</PreReleaseMilestone> <!-- Overwrite this property for nightly builds from the DEVELOP branch. -->
1919
<!--

LOGGING/Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
88

9+
<!--
10+
LOGGING packages have an independent release track.
11+
The version override is in Directory.Build.targets because it must run AFTER Product.props imports _GlobalStaticVersion.props.
12+
To promote LOGGING to the same version as main packages, remove the PropertyGroup from Directory.Build.targets.
13+
-->
14+
915
<PropertyGroup>
1016
<!-- The common project structure looks like this: -->
1117
<!-- d:\DDGit\ -->

LOGGING/Directory.Build.targets

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!--
4+
LOGGING packages have an independent release track.
5+
This file runs AFTER the csproj and Product.props imports, so VersionPrefix is available.
6+
To promote LOGGING to the same version as main packages, remove this PropertyGroup.
7+
-->
8+
<PropertyGroup Label="LOGGING Version Override">
9+
<PreReleaseMilestone>beta3</PreReleaseMilestone>
10+
<VersionSuffix>$(PreReleaseMilestone)</VersionSuffix>
11+
<!-- Recalculate PackageVersion with the overridden PreReleaseMilestone -->
12+
<PackageVersion>$(VersionPrefix)-$(PreReleaseMilestone)</PackageVersion>
13+
<PackageVersion Condition="'$(StableRelease)' != 'True'">$(PackageVersion)-build$(BuildNumber)</PackageVersion>
14+
</PropertyGroup>
15+
</Project>

0 commit comments

Comments
 (0)