The newest preview of PowerShellGet is now out there on the PowerShell Gallery. On this new preview model of PowerShellGet, PowerShellGet is a compatibility module that permits use of PowerShellGet 2.x (and beneath) cmdlet syntax with PSResourceGet performance by making a greatest effort mapping between the cmdlet interfaces of each variations of the module. This module is a continuation of the CompatPowerShellGet challenge, however will now be delivery below the PowerShellGet module identify.
The best way to set up the module
To put in from PSResourceGet (which is included in PowerShell 7.4 Preview 5)
Set up-PSResource PowerShellGet -Prerelease
To put in from PowerShellGet 2.2.5
Set up-Module -Identify PowerShellGet -AllowPrerelease -Drive -AllowClobber
Word that Microsoft.PowerShell.PSResourceGet can also be required to make use of this module,however it isn’t listed as a dependency as it’s nonetheless in prerelease.
Expectations for the module
PowerShellGet is a compatibility module that permits use of PowerShellGet 2.x (and beneath) cmdlet syntax with PowerShellGet 3.0 (and newer) performance by making a greatest effort mapping between the cmdlet interfaces of each variations of the module. For instance, if a consumer has the PowerShellGet module put in and runs the command Set up-Module PowerShellGet -AllowPrerelease
PowerShellGet module will get auto loaded into the PowerShell Session and can map the command to PSResourceGet syntax Set up-PSResource PowerShellGet -Prerelease
The command will then be executed by the PowerShellGet 3.0 implementation.
This module is designed in order that customers is not going to want to right away replace their scripts to be able to replace to the newest model of PowerShellGet or to start profiting from the efficiency enhancements already out there in PSResourceGet. We nonetheless do suggest that authors start making the adjustments required to replace their scripts to the brand new cmdlet interface in the event that they wish to reap the benefits of the brand new options out there in PSResourceGet (described in different blogs).
This compatibility module is designed in order that it takes priority over legacy variations of PowerShellGet. You probably have this compatibility module put in and wouldn’t prefer it for use, you possibly can take away it from the PowerShell session utilizing the Take away-Module command.
Please be aware that this movement is just attainable if the consumer has each the PowerShellGet module put in and the Microsoft.PowerShell.PSResourceGet module put in. As soon as PSResourceGet is mostly out there will probably be a dependency of future variations of PowerShellGet.
Timeline
This module is anticipated to ship in PowerShell 7.5. We count on this module to succeed in GA within the early PowerShell 7.5 timeframe to maximise alternative for high quality suggestions. We don’t count on to introduce new options to this module, all new options will probably be designed in Microsoft.PowerShell.PSResourceGet. Some new options may fit on this module as a facet impact.
Going ahead we don’t plan to do any future releases of the CompatPowerShellGet module, all releases will probably be below the PowerShellGet identify.
The best way to give suggestions or get assist
This model of the module remains to be in preview, that means that bugs are anticipated. We actually recognize any suggestions on the module. You probably have any bug stories, questions, or strategies for options please open up a bug report within the PowerShellGet repository.
Sydney
PowerShell crew