Summary
Analyses the specified solution with ReSharper's InspectCode,
using the specified settings.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("InspectCode")]
public static void InspectCode(this ICakeContext context, FilePath solution, InspectCodeSettings settings)
Examples
var buildOutputDirectory = Directory("./.build");
var resharperReportsDirectory = buildOutputDirectory + Directory("_ReSharperReports");
var msBuildProperties = new Dictionary<string, string>();
msBuildProperties.Add("configuration", configuration);
msBuildProperties.Add("platform", "AnyCPU");
InspectCode("./MySolution.sln", new InspectCodeSettings {
SolutionWideAnalysis = true,
Profile = "./MySolution.sln.DotSettings",
MsBuildProperties = msBuildProperties,
OutputFile = resharperReportsDirectory + File("inspectcode-output.xml"),
ThrowExceptionOnFindingViolations = true
});
Attributes
Parameters
Return Value