Create a Module Manifest
suggest change@{
RootModule = 'MyCoolModule.psm1'
ModuleVersion = '1.0'
CompatiblePSEditions = @('Core')
GUID = '6b42c995-67da-4139-be79-597a328056cc'
Author = 'Bob Schmob'
CompanyName = 'My Company'
Copyright = '(c) 2017 Administrator. All rights reserved.'
Description = 'It does cool stuff.'
FunctionsToExport = @()
CmdletsToExport = @()
VariablesToExport = @()
AliasesToExport = @()
DscResourcesToExport = @()
}
Every good PowerShell module has a module manifest. The module manifest simply contains metadata about a PowerShell module, and doesn’t define the actual contents of the module.
The manifest is a .psd1 data file that contains a hashtable. That hashtable must use specific keys so PowerShell treats the file as a module manifest. An empty FunctionsToExport array exports no functions. Use '*' while you are developing, or list the names to export.
The example above provides a list of the core HashTable keys that make up a module manifest, but there are many others. The New-ModuleManifest command helps you create a new module manifest skeleton.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents