No functions listed for my module

Aug 26, 2013 at 7:44 PM
I have a binary module with a PSD1 that I'm trying to create help for. The module works great, I can import it and use the various cmdlets without a problem. However if I use "Import module from file", pick my PSD1, and double-click to edit the module's help - no functions are listed.

Any ideas why the Help Editor isn't listing the cmdlets in my module? It seems to work fine for other modules on my system.
Coordinator
Aug 27, 2013 at 6:50 AM
As per Microsoft documentation:
Specify only the module name whenever possible. When you specify a file name, only the members that are implemented in that file are imported. If the module contains other files, they are not imported, and you might be missing important members of the module.
Since, your PSD1 file do not implement anything (I guess), no commands are imported (which are implemented in different files). Can you provide your PSD1 file contents?
Aug 27, 2013 at 2:24 PM
When you specify a file name, only the members that are implemented in that file are imported.
In that case it sounds pointless to allow PSD1 files to be selected from the "Import module from file" dialog since PSD1's will never implement anything. They are a manifest which describes what is exported from other files.

In any case, here is a copy of my PSD1. It is a binary module with the cmdlets exported from MyModule.dll, the Root Module.
@{

# Script module or binary module file associated with this manifest.
RootModule = 'MyModule.dll'

# Version number of this module.
ModuleVersion = '0.0.2'

# ID used to uniquely identify this module
GUID = '5d547d8f-1c0c-4cde-b40a-3655a878582c'

# Author of this module
Author = 'Joshua Poehls'

# Company or vendor of this module
CompanyName = ''

# Copyright statement for this module
Copyright = ''

# Description of the functionality provided by this module
Description = ''

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '3.0'

# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of the .NET Framework required by this module
DotNetFrameworkVersion = '4.0'

# Minimum version of the common language runtime (CLR) required by this module
CLRVersion = '4.0.30319'

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Ionic.Zip.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
TypesToProcess = 'types.ps1xml'

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module
FunctionsToExport = '*'

# Cmdlets to export from this module
CmdletsToExport = '*'

# Variables to export from this module
VariablesToExport = '*'

# Aliases to export from this module
AliasesToExport = '*'

# List of all modules packaged with this module.
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess
# PrivateData = ''

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}
Coordinator
Aug 27, 2013 at 4:41 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Aug 27, 2013 at 6:35 PM
I have fixed (at least, it works for me) and if you are interested in a private build, contact me directly via email: pspki.feedback&sysadmins.lv