MicrosoftDocs / PowerShell-Docs-PSGet

The official documentation for PowerShellGet and PowerShell Gallery
https://docs.microsoft.com/powershell/gallery/overview
Creative Commons Attribution 4.0 International
23 stars 24 forks source link

Add guidance in using the latest module versions and removing old module versions #140

Closed MarcoJanse closed 3 months ago

MarcoJanse commented 3 months ago

Type of issue

Missing information

Feedback

The documentation lists in the description the following:

By default, Update-PSResource installs the latest version of the package and any of its dependencies without deleting the older versions installed.

In my opinion this documentation should then also explain how to deal with old versions.

I have also noticed that the new version is not automatically used, unless you import it using Import-Module -Name <moduleName> -Version <versionNumber> -Force

Can the documentation be please updated in regards to handle multiple module versions?

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.psresourceget/update-psresource?view=powershellget-3.x

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs-PSGet/blob/main/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Update-PSResource.md

Author

@sdwheeler

Document Id

9dc601c8-18da-76e6-2075-3b02fe7ea451

sdwheeler commented 3 months ago

There has been no change in either of these behaviors.

image