Page 1 of 1

Replace ModuleToProcess with RootModule

Posted: Fri Aug 10, 2018 10:36 am
by pdearmen
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?

Re: Replace ModuleToProcess with RootModule

Posted: Tue Aug 14, 2018 8:06 am
by davidc
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.