Trouble loading DLL into PowerShell? #1211
Jibun-no-Kage
started this conversation in
General
Replies: 2 comments
-
After unblocking, using .NET LoadFile... worked. Using LoadModule worked. Just odd that Add-Type sees to fail. Still testing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This may help: https://github.com/Lifailon/PowerShell.HardwareMonitor |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trouble loading DLL into PowerShell?
Add-Type -LiteralPath "C:\Automation\Library\LibreHardwareMonitor\LibreHardwareMonitorLib.dll"
Add-Type : Could not load file or assembly 'file:///C:\Automation\Library\LibreHardwareMonitor\LibreHardwareMonitorLib.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At C:\Automation\Test.ps1:7 char:1
+ Add-Type -LiteralPath "C:\Automation\Library\LibreHardwareMonitor\Lib ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-Type], FileLoadException
+ FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
Hit Line breakpoint on 'C:\Automation\Test.ps1:10'
Beta Was this translation helpful? Give feedback.
All reactions