[PSS 2016] Do Not Edit File on Build Module

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 7 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
mpalmer
Posts: 10
Last visit: Mon Oct 02, 2017 1:08 pm

[PSS 2016] Do Not Edit File on Build Module

Post by mpalmer »

I don't know if this bugs just me, but I absolutely dislike the fact that PSS edits my PSM1 file when I use the Build Module button in a Module Project. The button is extremely useful but the fact that it edits my files makes me not want to use it.

This is a commercial product that many people use to build custom scripts and applications and I don't think it should be editing files adding in comments.

At the very least I think this should be an option, it could even be opt-out, but I don't think it should be a feature that cannot be turned off.

My apologies if I missed an option that allows this feature to be turned off. If such an option does exist I'd love to know where it is.

Thanks for a great product.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2016] Do Not Edit File on Build Module

Post by davidc »

It sounds like you have your project in the same folder the module project exports to.

Keep the PowerShell Studio project folder in your My Documents\SAPIEN\PowerShell Studio\Projects folder.
And then when the project builds, it will automatically copy the final psm1 file (and any content files) to the My Documents\WindowsPowerShell\Modules folder. It does this, because the final psm1 will contain the exported GUI functions and possibly merge any necessary ps1 scripts (depending on your project file build settings).
David
SAPIEN Technologies, Inc.
User avatar
mpalmer
Posts: 10
Last visit: Mon Oct 02, 2017 1:08 pm

Re: [PSS 2016] Do Not Edit File on Build Module

Post by mpalmer »

I don't have the project in the same folder the module exports to. These are also strictly script modules there's no GUI files associated with them.

What I'm referring to is I can look at my PSM1 file in my project directory and it is exactly my code. When I use the Build Module button and then look at the code in the PSM1 in my module directory PSS has added a comment block to the very top of the file and indented another level everything after it .
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2016] Do Not Edit File on Build Module

Post by davidc »

Thank you for the clarification. The content shouldn't be tabbed. We will look into this and get back to you.
David
SAPIEN Technologies, Inc.
User avatar
mpalmer
Posts: 10
Last visit: Mon Oct 02, 2017 1:08 pm

Re: [PSS 2016] Do Not Edit File on Build Module

Post by mpalmer »

Just to be clear I don't care so much about the content getting tabbed in. What I really care about is the comment block that gets prepended into the psm1 file.
This topic is 7 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked