Skip to content

Method not found exception occurs when analyze DSC Resource #786

@mkht

Description

@mkht

It seems to have occurred from 1.14.0

PS C:\Users\Administrators> Invoke-ScriptAnalyzer -Path "C:\Users\Administrators\Desktop\TestRsc" -Recurse
Invoke-ScriptAnalyzer : Method not found: 'System.Collections.Generic.List`1<Microsoft.Management.Infrastructure.CimCla
ss> Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportClasses(System.String, System.Tuple`2<S
ystem.String,System.Version>, System.Collections.ObjectModel.Collection`1<System.Exception>)'.
発生場所 行:1 文字:1
+ Invoke-ScriptAnalyzer -Path "C:\Users\Administrators\Desktop\TestRsc" -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (C:\Users\Administrators\...IISWebsite.psm1:String) [Invoke-ScriptAnalyzer]、Mis
    singMethodException
    + FullyQualifiedErrorId : RULE_ERROR,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeScriptAnalyzerComm
   and

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions