This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Use MasterEmulator in PowerShell

Hello

I'm able to use the MasterEmulator in a WPF or command line application but when I try to use it in Windows PowerShell i get an error.

I'm trying (with the dll loaded):

New-Object Nordicsemi.MasterEmulator

which fails with:

New-Object : Exception calling ".ctor" with "0" argument(s): "This property has already been set and cannot be modified."
    At line:1 char:1
    + New-Object Nordicsemi.MasterEmulator
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Is there a way to use the MasterEmulator in Windows PowerShell?

Thanks and regards Andy

Parents Reply Children
No Data
Related