chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.26k stars 901 forks source link

Upgrade PowerShell Host to PowerShell 7+ (Core) #1990

Open c-vetter opened 4 years ago

c-vetter commented 4 years ago

Hey there, as per #1880, PowerShell Core is currently not supported. There is no mention of that on https://chocolatey.org/install

Since PowerShell Core is the future of PowerShell, support for it seems appropriate to me. Are there any plans on this?

ferventcoder commented 4 years ago

@rasenplanscher So Chocolatey works if you are running PowerShell core, but it doesn't run a PowerShell Host in PowerShell Core. We fixed parts of the installation script from chocolatey.org (#1880 which I rolled over to the chocolatey.org repo and closed it) yesterday to allow you to install Chocolatey with PowerShell Core.

However, if you are talking about upgrading the PowerShell host to PowerShell Core (or simply PowerShell 7+), then that is more an issue for here and one we definitely need to put on the backlog here. We have it in the plans to do this and have been talking about it since PowerShell Summit 2018 - I believe it was 18 when I sat down with @Jaykul and talked about his work on Jupyter PowerShell - (checks notes - yep https://github.com/Jaykul/Jupyter-PowerShell). So definitely plans to have the PSH Host be Core at some point.

To do that we have a longer road of getting Chocolatey to .NET Core along with its dependencies. I thought we had an issue created on that, but it doesn't appear we do (my search skills may be lacking today though).

ferventcoder commented 4 years ago

Added some labels here to note this (could potentially be a breaking change).

tapika commented 3 years ago

Related to #2147 .net core upgrade and powershell break in .net core:

https://stackoverflow.com/questions/50040898/system-automation-runspaces-error-in-net-core-project

If choco team has any ready made port, I could pick it up.