8000 Document why `PackageVersion` is used in `PowerShell.Common.props` (#… · PowerShell/PowerShell@ef1c0d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef1c0d7

Browse files
xtqqczzenguerrera
andauthored
Document why PackageVersion is used in PowerShell.Common.props (#12523)
Co-Authored-By: Nick Guerrera <nicholg@microsoft.com>
1 parent 9e3b340 commit ef1c0d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PowerShell.Common.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
<ProductVersion>$(PSCoreFormattedVersion)</ProductVersion>
5757

5858
<!--
59-
We have explicitly assign 'PackageVersion'
60-
because there is a bug: 'PackageVersion' is correctly assigned as 'Version' in 'NuGet.targets'
61-
but then immediately redefined as '1.0.0'.
62-
Tracking Issue https://github.com/dotnet/sdk/issues/1557
59+
We have to explicitly assign 'PackageVersion' here because we're changing 'Version' in a target.
60+
Before any targets have run (during static evaluation), 'Version' will have defaulted to '1.0.0' and PackageVersion will have defaulted to 'Version'.
61+
See https://github.com/dotnet/sdk/issues/1557
6362
-->
6463
<PackageVersion>$(PSCoreBuildVersion)</PackageVersion>
64+
6565
<ApplicationIcon Condition="$(ProductVersion.Contains('preview'))">..\..\assets\Powershell_av_colors.ico</ApplicationIcon>
6666
<ApplicationIcon Condition="!$(ProductVersion.Contains('preview'))">..\..\assets\Powershell_black.ico</ApplicationIcon>
6767

0 commit comments

Comments
 (0)
0