Where is fresh and modern SDK documentation? #26605
Replies: 2 comments 1 reply
|
The current docs are split by scenario, but there is now a direct answer for this use case:
The most relevant maintained entry points are Choosing the right PowerShell NuGet package and the host quickstart. The latter uses So for “modern C#/.NET 8+” there is not a separate replacement SDK documentation tree: use the SDK package/version that matches the PowerShell engine, then use the normal .NET target supported by that package. The package-selection page is the current canonical map, while the older Windows PowerShell SDK pages are mainly the API/hosting reference. |
Uh oh!
There was an error while loading. Please reload this page.
ITNOA
Hi all,
In PowerShell Docs we can see one section that calls "Scripting and Development", in this section, we can see two related sub sections like below
In Legacy PowerShell SDK is about Windows PowerShell (version < 5), but it is very comprehensive and informative titles about cmdlet development like
Installing the Windows PowerShell SDK Provides information about how to install the Windows PowerShell SDK.
Writing a Windows PowerShell Module Provides information for administrators, script developers, and cmdlet developers who need to package and distribute their Windows PowerShell solutions.
Writing a Windows PowerShell Cmdlet Provides information for designing and implementing cmdlets.
Writing a Windows PowerShell Provider Provides information for designing and implementing Windows PowerShell providers. It will help you understand how Windows PowerShell providers work, and it provides sample code that you can use to start designing or writing your own providers.
Writing a Windows PowerShell Host Application Provides information that can be used by program managers who are designing host applications and by developers who are implementing them. The host application can, define the runspace where commands are run, open sessions on a local or remote computer, and invoke the commands either synchronously or asynchronously based on the needs of the application.
Writing a PowerShell Formatting File Provides information for the authoring of formatting files, which control the display format for the objects that are returned by commands (cmdlets, functions, and scripts).
Windows PowerShell Reference Provides reference content for the APIs used in writing cmdlets, providers, and host applications, as well as other supporting APIs.
But in Developing Modern Modules we can see very few information about writing modules with very old template called Microsoft.PowerShell.Standard.Module.Template, this template based on PowerShell 5.1 and .NET Standard 2.0
I want to find some place to see very comprehensive documentations (like Legacy Windows PowerShell SDK Docs) about Modern PowerShell SDK (7.4+) with Modern C# (.NET 8+)
thanks
All reactions