Install-PSResource -Version
does not install the latest version of a module in given NuGet version range
#1776
Labels
Prerequisites
Steps to reproduce
According to the module doc,
Install-PSResource
command should install the latest version in given NuGet version range. However the command does not select the latest minor / patch version correctly. In below examplesInstall-PSResource
installs version2.9.1
although the latest version in given range is2.25.0
.Here's the output of
Find-PSResource
that shows all the available versions of the example module at the time of writing.PowerShell Gallery link: Microsoft.Graph.Authentication
Expected behavior
Actual behavior
Error details
Environment data
Visuals
It appears that
Install-PSResource
simply installs the first module returned by the PowerShell Gallery API which does not always match the latest version.The text was updated successfully, but these errors were encountered: