PowerShell-Docs
PowerShell-Docs copied to clipboard
Writing Portable Module docs are out of date
Prerequisites
- [X] Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- [X] Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in
Get-Foocmdlet" instead of "Typo." - [X] Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.
Links
- https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/writing-portable-modules?view=powershell-7.3#creating-a-new-module
Summary
The portable module examples are out of date and no longer seem to work.

The dotnet cli commands seemed to be out of date and the package template does not seem to exist anymore.
Details
It would be great to have a more concise page for creating a PowerShell cmdlet via a C# template. I am not familiar at all with .NET development or setting up C# projects so starting from the most basic level would be extremely helpful for users like me.
Suggested Fix
Update with new .NET syntax, publish new template that is available and provide more details on how to set up a C# environment to develop PowerShell cmdlets.
@StevenBucher98 yeah, we need someone from the PS team to update this article.