Open alexeymelentyev opened 1 year ago
I haven't yet changed the Razor implementation but most of the beta1 code is built on MacOS. Can you give it a try and revert back if you continue to face this issue?
Please note: with version 5, ExtentHtmlReporter is deprecated and ExtentSparkReporter is the replacement. So the above code will change slightly:
using AventStack.ExtentReports;
using AventStack.ExtentReports.Reporter;
var extent = new ExtentReports();
var htmlReporter = new ExtentSparkReporter("index.html");
extent.AttachReporter(htmlReporter);
extent.CreateTest("MyFirstTest").Pass("details");
extent.Flush();
It works fine for version 5. Thank you
Hi! I try to run simple code on mac with .net6 and get an RazorEngine.Templating.TemplateCompilationException on extent.Flush();
Code:
It works fine on Windows. And it also work for .net framework4 on mac. But for some reason it fails for .net6 on mac. Any ideas how to deal with it?
Detailed exception: