Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public TRunner TransformXmlFile(string xsltFile, string inputFile, string outputFile)
 {
     XsltTransformTask.Execute(scriptExecutionEnvironment, inputFile, outputFile, xsltFile);
     return(ReturnThisTRunner());
 }