.NET
What type of .NET projects does Snyk support?
Snyk supports testing and monitoring .NET projects that have their dependencies managed by NuGet.
Source Control Management*
Snyk's source control integrations support testing and monitoring the following manifest files & formats:
- packages.config
- *.csproj, *.vbproj, *.fsproj
- <packageReference> format in *.csproj, *.vbproj, *.fsproj files
Snyk will analyse each manifest in a context of a target framework in order to understand all the dependencies brought in by the projects. Snyk uses Nuget API (3+) to grab all transitive dependencies.
Serverless
See the specific Snyk Serverless documentation for language support.
CLI
Snyk's CLI support testing and monitoring the following .NET manifest files & formats:
- packages.config
- project.json
- project.assets.json
- .nuspec (processed automatically if present)
- .sln
- and compares the specific versions of every direct and deep dependency in your project against our NuGet vulnerability database.
Testing the solution
snyk test --file=<your_solution>.sln
Testing individual project
snyk test --file=packages.config
A project build file is required for the CLI test so that Snyk can analyse target frameworks for this project.
Go to the cli documentation for more details about the specific commands supported by the CLI.