DupFinderAliases.

DupFinder(ICakeContext, FilePath, DupFinderSettings) Method

Summary

Analyses the specified file with ReSharper's DupFinder using the specified settings. The file can either be a solution/project or a source file.
Namespace
Cake.Common.Tools.DupFinder
Containing Type
DupFinderAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("DupFinder")]
public static void DupFinder(this ICakeContext context, FilePath file, DupFinderSettings settings)

Examples

 var buildOutputDirectory = Directory("./.build");
 var resharperReportsDirectory = buildOutputDirectory + Directory("_ReSharperReports");
 var rootDirectoryPath = MakeAbsolute(Context.Environment.WorkingDirectory);

 DupFinder("./src/MySolution.sln", new DupFinderSettings {
     ShowStats = true,
     ShowText = true,
     ExcludePattern = new String[]
     {
         rootDirectoryPath + "/**/*Designer.cs",
     },
     OutputFile = resharperReportsDirectory + File("dupfinder-output.xml"),
     ThrowExceptionOnFindingDuplicates = true
 });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
file FilePath The file to analyze.
settings DupFinderSettings The settings.

Return Value

Type Description
void