NuAudit 1.0.10

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package NuAudit --version 1.0.10
                    
NuGet\Install-Package NuAudit -Version 1.0.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NuAudit" Version="1.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NuAudit" Version="1.0.10" />
                    
Directory.Packages.props
<PackageReference Include="NuAudit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NuAudit --version 1.0.10
                    
#r "nuget: NuAudit, 1.0.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NuAudit@1.0.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NuAudit&version=1.0.10
                    
Install as a Cake Addin
#tool nuget:?package=NuAudit&version=1.0.10
                    
Install as a Cake Tool

NuAudit

NuAudit is a .NET tool for auditing NuGet package vulnerabilities and license compliance across all projects in a solution.

Features

  • Scans all .csproj files in a solution for NuGet package references.
  • Checks for known vulnerabilities using the NuGet API.
  • Identifies packages with licenses not in an allowed set.
  • Provides utilities to display vulnerability and license information.

Usage

  1. Build the project:

    dotnet build
    
  2. Run tests:

    dotnet test
    
  3. Integrate NuAudit in your code:

    csharp
    var auditor = new NuAudit.NuAudit();
    
    // Get all vulnerable packages
    var vulnerabilities = await auditor.GetVulnerablePackagesAsync();
    auditor.DisplayVulnerabilityDetails(vulnerabilities);
    
    // Check for restricted licenses
    var allowedLicenses = new HashSet<string> { "MIT", "Apache-2.0" };
    var restricted = await auditor.GetPackagesWithRestrictedLicensesAsync(allowedLicenses);
    

Project Structure

Requirements

  • .NET 9.0 SDK or later
  • Internet access (for querying NuGet API)

License

[MIT]

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated