Skip to content

DiagnosticRecord does not contain a method named 'op_Addition' #18

@RD-Processa

Description

@RD-Processa

Invoke-PSCodeHealth throws 'MethodNotFound' when a module that containst PowerShell classes is analyzed

Method invocation failed because [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord] does not contain a method named 'op_Addition'.
At C:\Program Files\WindowsPowerShell\Modules\PSCodeHealth\0.2.9\Private\New-PSCodeHealthReport.ps1:82 char:13
+             $AllScriptAnalyzerResults = ($FunctionHealthRecord.Script ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound
  • Environment: Windows PowerShell 5.1.14409.1012 running Windows 8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions