Page 1 of 1

Update Module Manifest

Posted: Tue Aug 13, 2019 4:27 am
by PsCustomObject
Product, version and build: PowerShell Studio 5.6.163.0
32 or 64 bit version of product: 64bit
Operating system: Win 10 1903
32 or 64 bit OS: 64bit

Hello,

sorry to open a new topic again regarding modules manifest but could not find an answer, this is more a question rather than a bug report (at least I think). I have amodule with an associated module which has been created by PowerShell Studio, in the FunctionsToExport section I have the various functions that should be exported when module is imported like this

Code: Select all

	# Functions to export from this module
	FunctionsToExport	   = @(
	Function1,
	Functin2,
	Function3
	)
My question should PowerShell Studio automatically append functiosn to this variable when a new function is added to the module? Of course I can manually update the manifest file or simply use the '*' notation but was wondering if this should not be built-in in the product.

I've tried both creating manually a new function and using the contextual menu Insert New Function from the editor both with the same result.

Thanks in advance for any pointer/feedback!

Re: Update Module Manifest

Posted: Tue Aug 13, 2019 7:24 am
by brittneyr
On the properties panel, if you have Export Functions set to true:
SPS-PropertiesPanelModule.png
SPS-PropertiesPanelModule.png (20.87 KiB) Viewed 2550 times
Then when you build your module, FunctionsToExport should be updated.

Re: Update Module Manifest

Posted: Fri Aug 16, 2019 1:10 am
by PsCustomObject
Thanks Brittney,

got it, I was expecting PsStudio to automatically update the manifest upon module file save but apparently need to build for this to work as I was previousely just moving the files under the correct path.

Thanks for clarifying.

Re: Update Module Manifest

Posted: Fri Aug 16, 2019 7:58 am
by brittneyr
That behavior would make sense. You are welcome to file a feature request here:
https://www.sapien.com/requests

Re: Update Module Manifest

Posted: Fri Aug 16, 2019 2:44 pm
by PsCustomObject
Just ignore this.-