Shared = True - not saved

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 LICENSE NUMBERS, ACTIVATION 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.
DanielStockinger
Posts: 5
Joined: Fri Dec 27, 2019 1:29 am

Shared = True - not saved

Post by DanielStockinger » Mon Feb 10, 2020 11:56 pm

Hello,

At First i Created a Project. In this Project i have some psm1 Files Referenced.
Project.png
Project.png (6.23 KiB) Viewed 394 times
I would like, that the psm1 Files would be included during the Build Process to the .exe File.
So i found out, that i have to set Build to Include and Shared to True for all the psm1 Files.
Psm1.png
Psm1.png (6.52 KiB) Viewed 394 times
But the Option Shared = True is not saved in the Project. So every time i open the Project i have to do this again.

Thanks for your Help.

Regards
Daniel

User avatar
mxtrinidad
Site Admin
Posts: 380
Joined: Sun Mar 03, 2013 12:42 pm

Re: Shared = True - not saved

Post by mxtrinidad » Tue Feb 11, 2020 7:24 am

Thanks for reporting the issue. We are currently looking into it and get back to you soon.

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

Re: Shared = True - not saved

Post by brittneyr » Tue Feb 11, 2020 8:18 am

Modules files are not normally included in the packaging process for an exe. This is why if you were using a module project, it would not allow you to build an exe.
Shared is intended for allowing the use of functions and variables declared in the file to referenced by other project files. Module Files are different which is most likely why the value isn't being saved. If you were using a Module Project then you would see that the values of these files are always set to true.

While I agree the value should be saved, what you are trying do to was not the intended functionality as I can see you are just using module files in a project. What are you trying to accomplish?
Brittney Ryn
SAPIEN Technologies, Inc.