DependencyCheckAliases Class

Summary

Contains functionality for running a OWASP Dependency Check analysis on a C# project.

In order to use the commands for this addin, include the following in your build.cake file to download and reference from NuGet.org:

#tool "nuget:?package=DependencyCheck.Runner.Tool&include=./**/dependency-check.sh&include=./**/dependency-check.bat"
#addin "nuget:?package=Cake.DependencyCheck"

Assembly
Cake.DependencyCheck.dll
Namespace
Cake.DependencyCheck
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["DependencyCheckAliases"] class Type type-node

Syntax

public static class DependencyCheckAliases

Examples

Project and Scan attributes required. Also Format can be (XML, HTML, CSV, JSON, VULN, ALL). The default is HTML.
#tool "nuget:?package=DependencyCheck.Runner.Tool&include=./**/dependency-check.sh&include=./**/dependency-check.bat"
#addin "nuget:?package=Cake.DependencyCheck"

Task("Dependency-Check")
   .Does(() => {
      DependencyCheck(new DependencyCheckSettings
      {
         Project = "ExampleProjectName",
         Scan = "source/directory/*",
         Format = "HTML"
      });
  });

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
DependencyCheck(ICakeContext, DependencyCheckSettings) void
Run the actual OWASP Dependency Check analysis.
static
DependencyCheck(ICakeContext, string, string) void
Run the actual OWASP Dependency Check analysis.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin