Skip to content

Hangs / fails on Windows 7 #6

@wohali

Description

@wohali

Hi there. Nice library! Working with @garbados to get support for various platforms into psaux.

Unfortunately, the ConvertTo-Json PowerShell cmdlet you're using doesn't exist in Windows 7. It's only present in PowerShell 3.0 and up and Windows 7 (along with some Windows Server versions) only have v2.0.

Worse, the library actually hangs on Windows 7 machines with PowerShell 2.0, rather than failing out.

For lack of a better term, there's a public domain "polyfill" that gives you this behaviour in PowerShell 2.0: https://github.com/EliteLoser/ConvertTo-Json

Could you include this library and use it when you detect PowerShell's version is not 3.0 or greater? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions