Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 681 Bytes

AvoidUsingDeprecatedManifestFields.md

File metadata and controls

38 lines (25 loc) · 681 Bytes
description ms.custom ms.date ms.topic title
Avoid Using Deprecated Manifest Fields
PSSA v1.21.0
06/28/2023
reference
AvoidUsingDeprecatedManifestFields

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'