Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Import SwisPowerShell in PowerShell Core on Linux #239

Closed
jackvaughanjr opened this issue Aug 7, 2020 · 5 comments
Closed

Cannot Import SwisPowerShell in PowerShell Core on Linux #239

jackvaughanjr opened this issue Aug 7, 2020 · 5 comments

Comments

@jackvaughanjr
Copy link

PS /> Import-Module -Name SwisPowerShell
Import-Module: Could not load type 'System.Management.Automation.PSSnapIn' from assembly 'System.Management.Automation, Version=7.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Originally posted by @miztroh-zz in #2 (comment)

@tonylea
Copy link

tonylea commented Sep 15, 2020

Same error trying to import on MacOS, PowerShell v7.0.3

@Mesverrum
Copy link

It's a known issue that the module has some dependencies on legacy .NET framework stuff that was never ported to ps6+ and to my knowledge never will.

Not sure what the timeline looks like on getting the module past that, wouldn't be surprised if it doesn't happen until the relevant bits of code get totally written out of Orion.

@tdanner
Copy link
Contributor

tdanner commented Sep 16, 2020

The blocking issue was a missing feature in the .NET Core version of WCF: dotnet/wcf#3. This did eventually get added, so it should be possible to make a fully functional, cross-platform version of SwisPowerShell.

@kmsigma
Copy link
Contributor

kmsigma commented Dec 2, 2020

I'm willing to do early testing of this on my PowerShell 7 Linux and Windows deployments if that would prove helpful. It seems like we are on the correct track according to #250, and I'd like to help in any way possible.

@danjagnow
Copy link
Contributor

This is resolved by #271 and available in v3.0.0.309-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants