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.
This topic is 5 years and 7 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
pdearmen
Posts: 66
Last visit: Mon Mar 11, 2024 1:29 pm

Replace ModuleToProcess with RootModule

Post 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?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Replace ModuleToProcess with RootModule

Post 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.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 7 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