From 133b16414501aaab9955be1e60c26e49ab067999 Mon Sep 17 00:00:00 2001 From: Nikola Milosavljevic Date: Mon, 2 Aug 2021 17:36:46 +0000 Subject: [PATCH] Fix OSX package versioning --- .../build/installer.singlerid.targets | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.singlerid.targets b/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.singlerid.targets index 5e88f7150e4..ea33a56ee66 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.singlerid.targets +++ b/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.singlerid.targets @@ -125,6 +125,10 @@ $([System.String]::Copy('$(InstallerPackageRelease)').Replace('-', '_')) + + $(VersionPrefix)-$(VersionSuffix) + + <_InstallerIntermediatesDir>$(IntermediateOutputPath)$(InstallerName)/$(InstallerPackageVersion)/ @@ -371,14 +375,14 @@ Properties="OutputPath=$(_OutputPathRoot)" RemoveProperties="@(_GlobalPropertiesToRemoveForPublish)" /> - <_MacOSVersionComponent Condition="'$(IncludeVersionInMacOSComponentName)' == 'true'">.$(ProductVersion) + <_MacOSVersionComponent Condition="'$(IncludeVersionInMacOSComponentName)' == 'true'">.$(InstallerPackageVersion) <_MacOSComponentName Condition="'$(_MacOSComponentName)' == ''">com.microsoft.dotnet.$(MacOSComponentNamePackType)$(_MacOSVersionComponent).component.osx.x64 <_MacOSSharedInstallDir>/usr/local/share/dotnet <_pkgArgs> <_pkgArgs>$(_pkgArgs) --root $(_OutputPathRoot) <_pkgArgs>$(_pkgArgs) --identifier $(_MacOSComponentName) - <_pkgArgs>$(_pkgArgs) --version $(ProductVersion) + <_pkgArgs>$(_pkgArgs) --version $(InstallerPackageVersion) <_pkgArgs>$(_pkgArgs) --install-location $(_MacOSSharedInstallDir) <_pkgArgs Condition="'$(MacOSScriptsDirectory)' != ''">$(_pkgArgs) --scripts $(MacOSScriptsDirectory) <_pkgArgs>$(_pkgArgs) $(_InstallerFile)