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.
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
Parameters
Return Value