private static void GenerateDupFinderHtmlReport(ITaskContext context, string dupFinderXmlReportFileName) { string buildsDir = context.Properties[BuildProps.BuildDir]; const string DupFinderXsltReportFileName = @"lib\ReSharper.CommandLineTools\dupfinder.xsl"; string dupFinderHtmlReportFileName = Path.Combine(buildsDir, "dupfinder-report.html"); XsltTransformTask reportToHtmlTask = new XsltTransformTask( dupFinderXmlReportFileName, dupFinderHtmlReportFileName, DupFinderXsltReportFileName); reportToHtmlTask.Execute(context); context.WriteInfo(@"Duplicates HTML report was written to {0}", Path.GetFullPath(dupFinderHtmlReportFileName)); }
public TRunner TransformXmlFile(string xsltFile, string inputFile, string outputFile) { XsltTransformTask.Execute(scriptExecutionEnvironment, inputFile, outputFile, xsltFile); return(ReturnThisTRunner()); }