SCM integrations for .NET
How Snyk scans .NET repositories through SCM integrations, including NuGet support and Universal Broker requirements
Snyk supports NuGet as the only package manager for SCM integrations. For brokered SCMs and brokered private package repositories, Snyk supports only the Universal Broker.
Considerations:
Snyk operates on a case-sensitive file system. Manifest definitions, such as
<ProjectReference>strings, must match the case of the files and folders.Directory.*.props,global.json, and other .NET-specific manifest files must use the exact casing Microsoft describes.Snyk supports a subset of the major, minor, and patch versions supported by Microsoft.
Snyk uses the following files to create dependency trees:
.NET Core:
*.projfiles.NET Framework:
*.projfiles andpackages.config
Import and scan .NET Projects
You can import .NET Projects from any supported SCM integration. Snyk analyzes your Projects using supported manifest files, builds a dependency tree, and displays the results in the Snyk Web UI.
To configure Snyk to scan build and development dependencies or skip them, navigate to the relevant Group and Organization Settings > .NET. To scan all development dependencies, ensure that the Scan build dependencies option is checked.
Support manifest files
Snyk builds the dependency tree using the following manifest files:
*.csproj*.vbproj*.fsprojglobal.jsonDirectory.Build.propsDirectory.Packages.props
Fix vulnerabilities in .NET Projects
If you manage Project dependencies with NuGet using PackageReference or packages.config, Snyk automatically updates the dependency version in your manifest file if a fix is available. You can then review and merge the fixes.
Last updated
Was this helpful?

