Skip to content

C#/NuGet: No projects found for solution #503

@RobinDinkel

Description

@RobinDinkel

Describe the bug
When I use the plugin to scan my C#/NuGet project I receive the following errors:

Error: No projects found for solution ".sln".
[ERR - 2:50:52 PM] Failed to scan NuGet project. Hint: Please make sure the commands 'dotnet restore' or 'nuget restore' run successfully for '.sln'
[ERR - 2:50:52 PM] Workspace '' scan on file '.sln' ended with error:
Error: Project with descriptor file .sln has error [Not Installed]

Dotnet restore does run successfully.

To Reproduce
Open a C#/NuGet project in VS Code and run the scan.

Expected behavior
Dependencies are scanned, vulnerabilities are show.

Versions

  • JFrog VS-Code extension version: 2.12.0
  • JFrog VS-Code extension operating system: Windows & Ubunto 20.04 (WSL)
  • JFrog Xray Version: 3.88.12

Additional context
The same project can be scanned in Visual Studio with the JFrog extension and returns the dependencies & vulnerabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions