This pull request normalizes the dispaying and usages of normalized version numbers.
To aid and try prevent non-normalized version numbers used, a banned API analyzer has also been added.
Motivation and Context
We should use the equivalent of version normalization that was introduced in Chocolatey CLI v2.0.0.
Testing
Open Chocolatey GUI
Navigate to the Chocolatey Source
Search for 7zip.portable
Verify 7zip.portable is shown with normalized version (ie 3 part version without leading zeros).
Open detail page.
Verify again only normalized version numbers are shown.
Click button for advanced installation.
Verify drop down list shows normalized version number of latest version.
Install the package.
Navigate to This PC.
Verify installed 7zip.portable package is shown with normalized version number.
Open details page and verify again normalized version number is shown.
View Package Arguments (NOTE: Manual work may be needed if running in debug mode).
Verify the package arguments are shown
Operating Systems Testing
Windows 10
Change Types Made
[x] Bug fix (non-breaking change).
[ ] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
Description Of Changes
This pull request normalizes the dispaying and usages of normalized version numbers. To aid and try prevent non-normalized version numbers used, a banned API analyzer has also been added.
Motivation and Context
We should use the equivalent of version normalization that was introduced in Chocolatey CLI v2.0.0.
Testing
This PC
.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Fixes #1005