PSResourceGet
PSResourceGet copied to clipboard
PSResourceInfo version property not correct for 2 or 3 digit version numbers.
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
If a resource is defined with a 2 digit (1.2) or 3 digit (9.0.0) version number then the Version property will incorrectly have 0 for either Build or Revision properties instead of -1.
Expected behavior
PS C:\> Find-PSResource -Name TabExpansionPlusPlus
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
TabExpansionPlusPlus 1.2 PSGallery TabExpansionPlusPlus extends the tab expansion and Intellisense features of…
PS C:\> Find-PSResource -Name NetworkingDsc
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
NetworkingDsc 9.0.0 PSGallery DSC resources for configuring settings related to networking.
Actual behavior
PS C:\> Find-PSResource -Name TabExpansionPlusPlus
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
TabExpansionPlusPlus 1.2.0.0 PSGallery TabExpansionPlusPlus extends the tab expansion and Intellisense features of…
PS C:\> Find-PSResource -Name NetworkingDsc
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
NetworkingDsc 9.0.0.0 PSGallery DSC resources for configuring settings related to networking.
Error details
N/A
Environment data
Name Version
---- -------
PowerShellGet 3.0.14
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response