© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
21 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

VSCode extension can't find nuget packages
C#CC# / help
4y ago
❔ Can't find dll reference assemblies
C#CC# / help
3y ago
❔ ✅ Nuget doesnt find any packages
C#CC# / help
3y ago
Nuget packages
C#CC# / help
15mo ago