Skip to content

Out-SocketLabs cannot find Newtonsoft.Json in PowerShell 7.1 #14

@mabaumgartner

Description

@mabaumgartner

When using the Out-SocketLabs function in versions 1.4.0 and 1.4.2 of the SocketLabs module, the following error is generated when using PowerShell 7.1.

image

The function does work as expected in PowerShell 7.2 and 7.3. I've not tried to use the module in PS 5.1, but this is listed as the minimum version in the psd1 file.

To test this I've used Docker containers mcr.microsoft.com/powershell:7.1.0-ubuntu-20.04 and mcr.microsoft.com/powershell:lts-7.2-ubuntu-22.04 as well an Azure Automation account with the 7.1 and 7.2 runtimes.

If 7.1 cannot be/will not be compatible, would it be appropriate to update the minimum version to 7.2? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions