Replace ModuleToProcess with RootModule

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.
Post Reply
User avatar
pdearmen
Posts: 58
Joined: Sun Mar 03, 2013 12:42 pm

Replace ModuleToProcess with RootModule

Post by pdearmen » Fri Aug 10, 2018 10:36 am

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Now that PowerShell 2.0 is officially being depreciated can we have all products that can create Powershell Modules replace the line

ModuleToProcess = 'TestModule.psm1'

with

RootModule = 'TestModule.psm1'

in the module manifest? Without using RootModule, you cannot version your module. Yes you can easily edit that line but its an annoyance and really no longer needed. If the thought is to keep support for v2 way of doing this still - can we have an option in the options box to be able to toggle between what is put in the manifest?

User avatar
davidc
Posts: 5334
Joined: Thu Aug 18, 2011 4:56 am

Re: Replace ModuleToProcess with RootModule

Post by davidc » Tue Aug 14, 2018 8:06 am

Can you clarify what you mean by you can't version your module?

According to PowerShell documentation, ModuleToProcess is simply an alias for RootModule in later versions of PowerShell.
David
SAPIEN Technologies, Inc.

Post Reply