Page 1 of 1

Shared = True - not saved

Posted: Mon Feb 10, 2020 10:56 pm
by DanielStockinger

At First i Created a Project. In this Project i have some psm1 Files Referenced.
Project.png (6.23 KiB) Viewed 1422 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 (6.52 KiB) Viewed 1422 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.


Re: Shared = True - not saved

Posted: Tue Feb 11, 2020 6:24 am
by mxtrinidad
Thanks for reporting the issue. We are currently looking into it and get back to you soon.

Re: Shared = True - not saved

Posted: Tue Feb 11, 2020 7:18 am
by brittneyr
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?