
MAbdelaal327313 (Community Member) asked a question.
I'm trying to scan a file using Veracode Greenlight in Visual Studio
I confirmed that the package "System.Collections.Immutable" in the error msg is installed. My solution isn't throwing any errors, I only get this error when trying to scan with Veracode.
Error Message:
Veracode scan failed. Method not found: 'System.Collections.Immutable.IImmutableSet`1<Microsoft.CodeAnalysis.ProjectId> Microsoft.CodeAnalysis.ProjectDependencyGraph.GetProjectsThatThisProjectDirectlyDependsOn(Microsoft.CodeAnalysis.ProjectId)'.
.png)
What version Greenlight are you using?
Can you please uninstall Greenlight and install back?
Also, Provide the Version of VS.
I did reinstall and the issue still exists.
Greenlight version: 2.0.2410.182
VS version: 15.7.6
Please send us the error log file.
VS Greenlight log can be viewed by Selecting View -> Output menu option in Visual Studio IDE and selecting Veracode Greenlight from the drop down list.
More information:
Open the Output pane by clicking View->Output in the menu bar. On most systems, Ctrl-Shift-O will be a shortcut for this action.
Run one or more Greenlight scans to generate output. It should automatically switch to the Veracode Greenlight selection in the Output pane, but if it does not then you can select it manually from the drop-down.
Select everything in that window (Ctrl-A) and then copy/paste it into a separate file or an email.
[1:10:27 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.16299.0, VSGLPluginVersion: 2.0.2410.182, IDEVersion: 15.0 Professional
[1:10:27 PM] - info - Opening the project...
[1:10:28 PM] - error - Veracode scan failed. Method not found: 'System.Collections.Immutable.IImmutableSet`1<Microsoft.CodeAnalysis.ProjectId> Microsoft.CodeAnalysis.ProjectDependencyGraph.GetProjectsThatThisProjectDirectlyDependsOn(Microsoft.CodeAnalysis.ProjectId)'.
[1:10:28 PM] - info - Build cleanup completed.
[1:10:28 PM] - info - Scan job duration 1 Seconds.
Please submit the support case with the complete scan log file and what project type are you using. We need to investigate deeper.
Please send email to support@veracode.com