I created some special PowerShell cmdlets in C # and would like to provide some information that will be displayed using the get-help cmdlet; for example, get-help my-cmdlet.
I created a basic snapin derived from PSSnapIn and redefined the Description, Name, and Vendor properties. I also created the help file "Cmdlets.dll-Help.xml". Cmdlets.dll is the correct assembly name, as indicated here .
I created the following script to quickly test this help:
$ErrorActionPreference = "Stop"
$scriptFolder = Split-Path $script:MyInvocation.MyCommand.Path
$dll = ($scriptFolder + "\Release\x64\Cmdlets.dll")
Write-Host "Testing Cmdlets in $dll" -fore Green
[System.Reflection.Assembly] $assembly = [System.Reflection.Assembly]::LoadFrom($dll)
Import-Module -assembly $assembly
get-help get-latestfiles
This seems to just add some default help about cmdlet options, but cannot get any of my examples that I wrote in the XML file. Does anyone have any thoughts on why this is?