max_rez
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
I have a .net 4.8 project that creates Powershell CmdLets as a dll file. Builds fine. When I try to run it (import the module in a PS 5 session) it complains "File Not Found" when it tries to use some assemblies that I have in the References. Specifically right now the missing assembly is System.Runtime.CompilerServices.Unsafe v 4.0.4.1. I really don't understand how assembly lookup works in a powershell environment. Any help is appreciated.
22 replies