How to run from PowerShell 7 on macOS (or Linux) #665
-
Got a very simple program that uses Magick.NET and works correctly:
I'd like to script it using PowerShell, but I'm apparently not following the right steps to load the native assemblies. Note, I'm trying to load them from the installed NuGet packages:
PowerShell does show ImageMagick types in autocomplete, but fails to run the same code as the C# program:
Can't see the actual exception, but my guess is PowerShell is not finding the native library Any advice? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it would work if you copy those three files to the same folder and the run Add-Type from that folder. |
Beta Was this translation helpful? Give feedback.
I think it would work if you copy those three files to the same folder and the run Add-Type from that folder.