PowerShell / PowerShellGet

This module provide functions used with PowerShellGet v3 to provide compatibility with scripts expecting PowerShellGet v2

Home Page:https://www.powershellgallery.com/packages/PowerShellGet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to transform -*Version parameters to -Version for all cmdlets that support NuGet version strings

sdwheeler opened this issue · comments

Summary of the new feature / enhancement

The following cmdlets in Microsoft.PowerShell.PSResourceGet have a Version parameter that takes a Nuget version range.

  • Find-PSResource
  • Get-InstalledPSResource
  • Install-PSResource
  • Save-PSResource
  • Uninstall-PSResource
  • Update-PSResource

The following proxy cmdlet need to have code to transform the *Version parameters to a NuGet version string.

  • Find-Command
  • Find-DscResource

Proposed technical implementation details (optional)

No response

Closing this issue because both Find-PSResource -CommandName and Find-PSResource -DscResourceName do not allow -Version. This is because it's an extremely costly operation server side.