KirkMunro / FormatPx

Better Formatting in PowerShell
Apache License 2.0
73 stars 5 forks source link

Incompatible with PowerShell 7 #9

Open CrookedJ opened 1 year ago

CrookedJ commented 1 year ago

Not sure if there is some workaround for this

PS H:\> Import-Module FormatPx -Verbose
VERBOSE: Loading module from path 'C:\Users\jcrook\Documents\PowerShell\Modules\FormatPx\1.1.3.15\FormatPx.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module FormatPx.
VERBOSE: Loading module from path 'C:\Users\jcrook\Documents\PowerShell\Modules\FormatPx\1.1.3.15\FormatPx.dll'.
VERBOSE: Importing cmdlet 'Format-Custom'.
VERBOSE: Importing cmdlet 'Format-Default'.
VERBOSE: Importing cmdlet 'Format-List'.
VERBOSE: Importing cmdlet 'Format-Table'.
VERBOSE: Importing cmdlet 'Format-Wide'.
VERBOSE: Importing cmdlet 'Out-Default'.
VERBOSE: Importing cmdlet 'Out-File'.
VERBOSE: Importing cmdlet 'Out-Host'.
VERBOSE: Importing cmdlet 'Out-Printer'.
VERBOSE: Importing cmdlet 'Out-String'.
VERBOSE: Loading module from path 'C:\Users\jcrook\Documents\PowerShell\Modules\SnippetPx\1.0.6.19\SnippetPx.psd1'.
VERBOSE: Importing cmdlet 'Get-Snippet'.
VERBOSE: Importing cmdlet 'Invoke-Snippet'.
VERBOSE: Loading module from path 'C:\Users\jcrook\Documents\PowerShell\Modules\FormatPx\1.1.3.15\FormatPx.psm1'.
ObjectNotFound: The 'Out-String' command was found in the module 'FormatPx', but the module could not be loaded due to the following error: [Could not load type 'System.Management.Automation.WorkflowInfo' from assembly 'System.Management.Automation, Version=7.3.2.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
For more information, run 'Import-Module FormatPx'.

I did find #11503 but it seems that got reverted and broke this again