| description | Avoid Using Deprecated Manifest Fields |
|---|---|
| ms.custom | PSSA v1.21.0 |
| ms.date | 06/28/2023 |
| ms.topic | reference |
| title | AvoidUsingDeprecatedManifestFields |
Severity Level: Warning
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.
Replace ModuleToProcess with RootModule in the module manifest.
ModuleToProcess ='psscriptanalyzer'
ModuleVersion = '1.0'RootModule ='psscriptanalyzer'
ModuleVersion = '1.0'