© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Decabytes

❔ Trouble Creating PowerShell Commandlet

I'm using visual studio 2022, dotnet 6.0. I installed the automation package using
NuGet\Install-Package Microsoft.PowerShell.SDK -Version 7.2.9

But when I try to import the module after building the package I get the error in the screenshot. Does anyone have any ideas?
dotnet_error.PNG
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

Powershell
C#CC# / help
2y ago
Run Powershell inside VS
C#CC# / help
2y ago
❔ Progress Bar in PowerShell Cmdlet without changing the PowerShell Script (Write-Progress)
C#CC# / help
3y ago