.NET (C# and VB.NET)
Applicability
Snyk supports .NET for code analysis (C# & VB.NET) and .NET for open source (C# only).
There is guidance for Snyk for .NET. If you need help, see Troubleshooting Snyk for .NET.
Snyk has introduced a new Early Access feature with significantly enhanced scanning capabilities for NuGet applications. For detailed information and access to these features, see the Improved .NET scanning page.
Check the language availability to be imported as an application, tested, or monitored using the Snyk products.
Available functions:
SCM import available for Snyk Open Source and Snyk Code. If you use .NET for Snyk Open Source, then the SCM import is only available when used with NuGet.
Test or monitor your app through CLI and IDE, available for both Snyk Open Source and Snyk Code.
Test your app's SBOM using
pkg:nugetTest your app's packages using
pkg:nuget
Package managers and supported file extensions
Snyk for .NET supports NuGet and Paket as package managers and nuget.org as a package registry and supports the following file formats:
Snyk Open Source:
For NuGet:
project.assets.json,*.sln,packages.config,project.jsonFor Paket:
paket.dependenciesandpaket.lock
Snyk Code:
For C#, Snyk supports the
.aspx&.csfile formats.For VB.NET, Snyk supports the
.vbfile format.
Frameworks and libraries
The following frameworks and libraries are supported in Snyk Code for .NET:
.NET 6.0 - 9.0
.NET Core
.NET Framework 4.6-4.8.x
Anthropic.SDK
ASP.NET 6.x (C# only)
Azure.AI.OpenAI
Dapper
fastJSON
Google_GenerativeAI
grpc-dotnet (C# only)
Microsoft.CodeAnalysis.VisualBasic
Mistral.SDK
System.CodeDom.Compiler
Windows Forms
Features
The following features are supported in Snyk for .NET:
Fix PRs (NuGet)
License scanning
Reports
Reports
Custom rules
Interfile analysis
Last updated
Was this helpful?

