I’m trying to load enums from a .netcore dll that I imported in powershell. I tried many actions:
[Reflection.Assembly]::LoadFrom(dllPath) Add-Type -Path dllpath [Reflection.Assembly]::Load(dllPath)
and then called:
I got this Exception :
Could not load file or assembly 'System.Runtime, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Can you please let me know if I’m missing anything. How to get these enums ?