You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ProductVersion property's meaning is ambiguous #48341
We should clarify which of the the property values the Installers package in Arcade expects (my guess is the one provided by the installer subset) and possibly depend on a different on a different property in that package. In addition to that my assumption is that more of the properties next to <ProductVersion /> in the installers subset can be cleaned-up and consolidated with the rest of the repo and don't need to reside inside a target anymore.
IIRC ProductVersion under installer is what drives the produced package versions, we should update that to use the same mechanism as we use for other packages which is based of arcade properties.
ProductVersion in installer is driven by the Arcade properties, but it has to add additional information to get the installer versions to match what they're supposed to for the given platform installer (like using a ~ instead of a - in deb package versions).
Reacted by Santiago Fernandez Madero and Adeel Mujahid
The customization around AppHostVersion, HostPolicyVersion and friends having different values during a single build seems to be unused/untested in practice (at least going by the public-facing CI scripts). If that also holds true for official builds and source-build scenarios, then we could define just one derived property (e.g. DotnetProductVersion) in eng/Versions.props and delete GetProductVersions target. That will allow us to also cleanup a handful of other stuff (msbuild, cmake and shell scripts, pipeline yaml files) around these customizations.
AFAIK we never used this feature--rebuilding the host-related packages every servicing release never ended up being considered worth preventing, I suppose.
Thanks Davis. I don't think there is any harm in keeping this incremental servicing infrastructure as long we can derive the properties from something that is available at evaluation time outside of a target and based on Arcade's version properties.
I'm currently also experimenting on it locally and am in a pretty good state. Based on the Version in most cases only be read in target files or from within targets or in ItemGroups, moving out VersionSuffix shouldn't be necessary. I'll probably create a draft PR this week with my progress.
Activity
safern commentedon Feb 16, 2021
IIRC
ProductVersionunder installer is what drives the produced package versions, we should update that to use the same mechanism as we use for other packages which is based of arcade properties.jkoritzinsky commentedon Feb 16, 2021
ProductVersionin installer is driven by the Arcade properties, but it has to add additional information to get the installer versions to match what they're supposed to for the given platform installer (like using a~instead of a-in deb package versions).am11 commentedon Feb 21, 2021
The customization around
AppHostVersion,HostPolicyVersionand friends having different values during a single build seems to be unused/untested in practice (at least going by the public-facing CI scripts). If that also holds true for official builds and source-build scenarios, then we could define just one derived property (e.g.DotnetProductVersion) ineng/Versions.propsand deleteGetProductVersionstarget. That will allow us to also cleanup a handful of other stuff (msbuild, cmake and shell scripts, pipeline yaml files) around these customizations.jkoritzinsky commentedon Feb 21, 2021
For those properties, I think @dagood and @vitek-karas are the most likely to know their intended usage. Their regular usage predates me.
dagood commentedon Feb 22, 2021
They predate me, too. I think the comment explains it well:
runtime/src/installer/Directory.Build.targets
Lines 51 to 64 in 54f6250
AFAIK we never used this feature--rebuilding the host-related packages every servicing release never ended up being considered worth preventing, I suppose.
@NikolaMilosavljevic may be able to dig in more.
ViktorHofer commentedon Feb 22, 2021
Thanks Davis. I don't think there is any harm in keeping this incremental servicing infrastructure as long we can derive the properties from something that is available at evaluation time outside of a target and based on Arcade's version properties.
am11 commentedon Feb 22, 2021
I was experimenting a bit and it seems like it would require us to move
VersionSuffixcalculation out of https://github.com/dotnet/arcade/blob/ca7fab569267ed3bc73360882d652d119aae5653/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.BeforeCommonTargets.targetsThe rest of the *Version calculations can be done statically in runtime/Directory.Build.props, after importing the Arcade SDK's props.
ViktorHofer commentedon Feb 22, 2021
I'm currently also experimenting on it locally and am in a pretty good state. Based on the
Versionin most cases only be read in target files or from within targets or in ItemGroups, moving outVersionSuffixshouldn't be necessary. I'll probably create a draft PR this week with my progress.akoeplinger commentedon Jul 14, 2026
writing down here if someone starts working on this at some point: looks like ProductVersion is also set by https://github.com/dotnet/sdk/blob/5ef6b4b9d2a2de6ad3a6e3b2e9ef64e5ba08ed8e/src/Layout/redist/targets/GenerateMSIs.targets#L66-L72 in the dotnet/sdk repo which in turn will get used by arcade's Microsoft.DotNet.Build.Tasks.Installers so we need to coordinate any changes to that