AvoidUsingDeprecatedManifestFields
Severity Level: Warning
Description
In PowerShell 5.0, a number of fields in module manifest files (.psd1
) have been changed.
The field ModuleToProcess
has been replaced with the RootModule
field.
How
Replace ModuleToProcess
with RootModule
in the module manifest.
Example
Wrong
ModuleToProcess ='psscriptanalyzer'
ModuleVersion = '1.0'
Correct
RootModule ='psscriptanalyzer'
ModuleVersion = '1.0'
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for