Prerequisites
Steps to reproduce
The ProductVersion string in the version resource of almost every PowerShell PE file lists the same Git commit ID twice, separated with a plus sign. Just once would be enough.
(However, that does not apply to Microsoft.PowerShell.MarkdownRender.dll, where the ProductVersion is just 7.2.1.)
Expected behavior
PS> (Get-Item "${PSHOME}/pwsh.exe").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb
PS> (Get-Item "${PSHOME}/pwsh.dll").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb
PS> (Get-Item "${PSHOME}/System.Management.Automation.dll").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb
PS> Get-Item "${PSHOME}/*.dll","${PSHOME}/*.exe" | Where-Object { $_.VersionInfo.ProductName -like '*PowerShell*' } | Group-Object { $_.VersionInfo.ProductName},{ $_.VersionInfo.ProductVersion } | Select-Object Count,Name
Count Name
----- ----
14 PowerShell, 7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb
1 PowerShell Markdown Renderer, 7.2.1
Actual behavior
PS> (Get-Item "${PSHOME}/pwsh.exe").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb+6effea0e216b190f989e227f5a20b670804a07fb
PS> (Get-Item "${PSHOME}/pwsh.dll").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb+6effea0e216b190f989e227f5a20b670804a07fb
PS> (Get-Item "${PSHOME}/System.Management.Automation.dll").VersionInfo.ProductVersion
7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb+6effea0e216b190f989e227f5a20b670804a07fb
PS> Get-Item "${PSHOME}/*.dll","${PSHOME}/*.exe" | Where-Object { $_.VersionInfo.ProductName -like '*PowerShell*' } | Group-Object { $_.VersionInfo.ProductName},{ $_.VersionInfo.ProductVersion } | Select-Object Count,Name
Count Name
----- ----
14 PowerShell, 7.6.0 SHA: 6effea0e216b190f989e227f5a20b670804a07fb+6effea0e216b190f989e227f5a20b670804a07fb
1 PowerShell Markdown Renderer, 7.2.1
Error details
Environment data
Name Value
---- -----
PSVersion 7.6.0
PSEdition Core
GitCommitId 7.6.0
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
The ProductVersion string in the version resource of almost every PowerShell PE file lists the same Git commit ID twice, separated with a plus sign. Just once would be enough.
(However, that does not apply to
Microsoft.PowerShell.MarkdownRender.dll, where the ProductVersion is just7.2.1.)Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response