Build Module to Custom Path

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
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.
som.s.peters
Posts: 1
Joined: Tue Jan 21, 2020 9:53 am

Build Module to Custom Path

Post by som.s.peters »

How can I have Build Module or Export to File export my module to a custom folder location? I don't want to have move the project to a shared location every time I need to share it.

Old build process: Whole project was in a SharePoint OneDrive folder that was shared with the team and they could directly import the module. This caused some minor sync issues and slowness importing the modules. They also occasionally loaded PowerShell with a buggy version of a function as sync was automatic.

New build process: Moved the module out of the OneDrive folder and into its own. Started using Git for source control, yay! Now I want to build the module into the old synced folder to share with the team since GitHub is $$$ for private corporate repo users. This will also give only 2 files instead of the 50+ I had before. How can I change where the module is built to on a per project basis as I have modules for a few different teams.

Edit: This is not the form I posted my question it, This is for PowerShell Studio 2020 5.7.178

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

Re: Build Module to Custom Path

Post by brittneyr »

The build path is not something that can be specified when building a module. It always builds to the PowerShell folder in your Documents. However, you can deploy your module to the specific location using the SAPIEN Script Packager:
SPS_Deploy.png
SPS_Deploy.png (31.49 KiB) Viewed 4704 times
Brittney Ryn
SAPIEN Technologies, Inc.