You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtentReportsreport=new();ExtentHtmlReporterreporter=new("./temp");
report.AttachReporter(reporter);varsuiteNode= report.CreateTest("SmokeTests");vartestNode= suiteNode.CreateNode("Test Case");varstepNode= testNode.CreateNode("Step 1");
stepNode.Info("Enter text 1234567890");
stepNode.Info("Press Enter");
stepNode.Info("Wait for 1 second");
testNode.Info("Done");
testNode.Pass("Passed");
suiteNode.Pass("Passed");
report.Flush();
If I run it by itself in a simple net5.0 console app or nunit test project it works fine.
But when i bring it into my actual project the same lines of code throw this error when Flush runs.
Getting this error:
Expression of type 'CompiledRazorTemplates.Dynamic.RazorEngine_c0f4c169c96049869b66f099bf3cad0a' cannot be used for return type 'RazorEngine.Templating.ITemplate'
Code I'm using:
If I run it by itself in a simple net5.0 console app or nunit test project it works fine.
But when i bring it into my actual project the same lines of code throw this error when Flush runs.
Getting this error:
Expression of type 'CompiledRazorTemplates.Dynamic.RazorEngine_c0f4c169c96049869b66f099bf3cad0a' cannot be used for return type 'RazorEngine.Templating.ITemplate'
Project Version: net5.0
Extent Package Version: 4.1.0
The text was updated successfully, but these errors were encountered: