PSCodeHealth icon indicating copy to clipboard operation
PSCodeHealth copied to clipboard

DiagnosticRecord does not contain a method named 'op_Addition'

Open RD-Processa opened this issue 8 years ago • 0 comments

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

RD-Processa avatar Jan 16 '18 22:01 RD-Processa