Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix VersionSuffix for the managed projects [master] #2637

Merged
merged 3 commits into from
Jun 20, 2017

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Jun 7, 2017

VersionSuffix is getting set before $(BuildNumberMajor) and $(BuildNumberMinor) are being set. When creating the DependencyModel nupkg, it is getting a bad version on its p2p reference to PlatformAbstractions.

The fix is to ensure VersionSuffix is defined correctly in the projects themselves - after the obj\BuildVersion.props file is created.

Workaround NuGet/Home#4337

<!-- Task from buildtools that uses lockfiles to validate that packages restored are exactly what were specified. -->
<UsingTask TaskName="ValidateExactRestore" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />

<Target Name="ValidateExactRestore"

This comment was marked as spam.

This comment was marked as spam.

@@ -17,6 +34,21 @@
<PackageThirdPartyNoticesFile>$(RepoRoot)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
</PropertyGroup>

<PropertyGroup Condition="'$(StabilizePackageVersion)' != 'true'">
<!-- Dev builds get a minor version, by default, of '0'. Our tests restore packages with

This comment was marked as spam.

This comment was marked as spam.

@@ -5,7 +5,24 @@

<PropertyGroup>

This comment was marked as spam.

This comment was marked as spam.

@eerhardt eerhardt force-pushed the FixVersionSuffixMaster branch from 4bd9859 to 53e8088 Compare June 8, 2017 22:50
eerhardt added 3 commits June 20, 2017 10:42
VersionSuffix is getting set before $(BuildNumberMajor) and $(BuildNumberMinor) are being set.  When creating the DependencyModel nupkg, it is getting a bad version on its p2p reference to PlatformAbstractions.

The fix is to ensure VersionSuffix is defined correctly in the projects themselves - after the obj\BuildVersion.props file is created.

Workaround NuGet/Home#4337
Also remove the dev machine BuildNumberMinor workaround per PR feedback, as this is no longer necessary.
@eerhardt eerhardt force-pushed the FixVersionSuffixMaster branch from 53e8088 to b59facb Compare June 20, 2017 15:43
@eerhardt
Copy link
Member Author

@weshaggard @chcosta - FYI I plan on merging this change today. Please let me know if you have remaining feedback.

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eerhardt eerhardt merged commit 5b1db17 into dotnet:master Jun 20, 2017
@eerhardt eerhardt deleted the FixVersionSuffixMaster branch June 20, 2017 22:00
<BuildVersionFile Condition="'$(BuildVersionFile)'==''">$(ObjDir)BuildVersion-$(TodayTimeStamp).props</BuildVersionFile>
</PropertyGroup>

<Import Condition="Exists('$(BuildVersionFile)')" Project="$(BuildVersionFile)" />

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants