Closed he852100 closed 4 years ago
Interesting issue: I had never tested any of my PowerShell scripts in PS Core for Linux. Juste in case, I first checked the script with PS Core 7.0.0-preview.6 in Windows: It works fine, both in the old Console, and in the new Terminal. Then indeed with PS Core for Linux in an LXSS bash window, I get the same exception that you got. But I'm afraid this is not a problem in Get-Console.ps1, but rather it's a problem in PS core for Linux, or more likely in .NET Core for Linux: Obviously it's still missing APIs compared to the Windows version. I think you should post this instead in PS Core issues or in .NET Core issues.