*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build:
Operating system: Windows 11
PowerShell version(s): PS 5.11
*** Please add details and screenshots as needed below. ***
DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Hi,
I have an issue when building a PSModule.
I have multiple functions in my PSModule, but want to export only a few.
So I have added at the end of my .psm1 file this line:
Code: Select all
Export-ModuleMember -Function 'Start-Function1, 'Get-Function1'
When building my MyPSModule.psm1 file gets build with this line:
Code: Select all
FunctionsToExport = @()
When I edit this line to:
Code: Select all
FunctionsToExport = @('Start-Function1, 'Get-Function1')
So I am doing something wrong, but do not know what.
Thanks in advance,
Ramon