Skip to content

Install-PackageProvider #153

Closed Answered by ThomasNieto
marco-eckstein asked this question in Q&A
Discussion options

You must be logged in to vote

In the current architecture the only way is to import them with Import-Module manually or automatically via $Profile. The behavior was changed from PackageManagement to better align to PowerShell's PSProvider model where third party providers are loaded and removed via Import-Module and Remove-Module. PackageManagement didn't have a way to remove providers other than restarting PowerShell.

I do think there is value in adding a way to auto import available providers when AnyPackage is loaded or allowing user specified providers Maybe a cmdlet that sets if all providers are imported with AnyPackage or a subset.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marco-eckstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants