Update Module Manifest

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
PsCustomObject
Posts: 80
Joined: Tue Apr 29, 2014 1:55 am

Update Module Manifest

Post by PsCustomObject » Tue Aug 13, 2019 4:27 am

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!

User avatar
brittneyr
Site Admin
Posts: 186
Joined: Thu Jun 01, 2017 7:20 am

Re: Update Module Manifest

Post by brittneyr » Tue Aug 13, 2019 7:24 am

On the properties panel, if you have Export Functions set to true:
SPS-PropertiesPanelModule.png
SPS-PropertiesPanelModule.png (20.87 KiB) Viewed 812 times
Then when you build your module, FunctionsToExport should be updated.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
PsCustomObject
Posts: 80
Joined: Tue Apr 29, 2014 1:55 am

Re: Update Module Manifest

Post by PsCustomObject » Fri Aug 16, 2019 1:10 am

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.

User avatar
brittneyr
Site Admin
Posts: 186
Joined: Thu Jun 01, 2017 7:20 am

Re: Update Module Manifest

Post by brittneyr » Fri Aug 16, 2019 7:58 am

That behavior would make sense. You are welcome to file a feature request here:
https://www.sapien.com/requests
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
PsCustomObject
Posts: 80
Joined: Tue Apr 29, 2014 1:55 am

Re: Update Module Manifest

Post by PsCustomObject » Fri Aug 16, 2019 2:44 pm

Just ignore this.-