VsMetricsAliases.

VsMetrics(ICakeContext, IEnumerable<FilePath>, FilePath, VsMetricsSettings) Method

Summary

Runs metrics.exe against the specified collection of input FilePath, and outputs to specified output FilePath with the specified VsMetricsSettings
Assembly
Cake.VsMetrics.dll
Namespace
Cake.VsMetrics
Containing Type
VsMetricsAliases

Syntax

public static void VsMetrics(this ICakeContext context, IEnumerable<FilePath> inputFilePaths, FilePath outputFilePath, VsMetricsSettings settings)

Examples

 var projects = GetFiles("bin/Debug/*.dll");
 var settings = new VsMetricsSettings()
 {
     SuccessFile = true,
     IgnoreGeneratedCode = true
 };

 VsMetrics(projects, "metrics_result.xml", settings);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
inputFilePaths IEnumerable<FilePath> The input file paths.
outputFilePath FilePath The output file path.
settings VsMetricsSettings The settings.

Return Value

Type Description
void