Skip to content

Script-based cmdlet help not loaded when DLL and PSM1 share the same base name #528

Closed
@sdwheeler

Description

@sdwheeler

The SCCM ConfigurationManager module consists of two files:

  • AdminUI.PS.dll
  • AdminUI.PS.psm1

Both files contain cmdlets.

New-MarkdownHelp creates the following help files.

  • AdminUI.PS.dll-Help.xml
  • AdminUI.PS-help.xml

PowerShell only loads the help from AdminUI.PS.dll-Help.xml. If you change the name of the second help file to AdminUI.PS.psm1-help.xml, then help is loaded from both files.

According to this document: https://docs.microsoft.com/powershell/scripting/developer/help/naming-help-files#script-workflow-help-files, the correct filename should be <ScriptModule>.psm1-help.xml.

New-MarkdownHelp needs to create that filename in the external help file: metadata of the cmdlet markdown file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackportTag - Backport neededBackport-CompleteTag - Backport work completed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions