Summary
Analyses the specified projects with ReSharper's DupFinder using the specified settings.
The files can either be solutions and projects or a source files.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("DupFinder")]
public static void DupFinder(this ICakeContext context, IEnumerable<FilePath> files, DupFinderSettings settings)
Examples
var buildOutputDirectory = Directory("./.build");
var resharperReportsDirectory = buildOutputDirectory + Directory("_ReSharperReports");
var rootDirectoryPath = MakeAbsolute(Context.Environment.WorkingDirectory);
var projects = GetFiles("./src/**/*.csproj");
DupFinder(projects, new DupFinderSettings {
ShowStats = true,
ShowText = true,
ExcludePattern = new String[]
{
rootDirectoryPath + "/**/*Designer.cs",
},
OutputFile = resharperReportsDirectory + File("dupfinder-output.xml"),
ThrowExceptionOnFindingDuplicates = true
});
Attributes
Parameters
Return Value