extent-framework / extentreports-csharp

Extent Reporting Library, .NET
http://extentreports.com
Apache License 2.0
49 stars 40 forks source link

Extent Reports 5.0.0-beta2 error on Flush(); [C# / Selenium] #187

Open AuToTe5ter opened 9 months ago

AuToTe5ter commented 9 months ago

Message:  TearDown : System.TypeLoadException : Could not load type 'Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine' from assembly 'Microsoft.AspNetCore.Razor.Language, Version=6.0.21.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

anshooarora commented 9 months ago

Can you share any additional details that can help me reproduce this?

anshooarora commented 9 months ago

Also see this comment: https://github.com/extent-framework/extentreports-csharp/issues/173#issuecomment-1714163200

Please make sure to remove all other ExtentReports packages and update to the latest 5.0.0 from 5.0.0-beta2.

AuToTe5ter commented 9 months ago

@anshooarora OS = Windows 10 Enterprise (22H2) .Net Framework = 4.8

I have removed all previous versions from packages folder and can confirm version is 5.0.0-beta2

anshooarora commented 9 months ago

Something is off with the version of Microsoft.AspNetCore.Razor.Language. Below are the versions of RazorEngine dependencies and it's supposed to be on 2.2.0 instead of 6.0.21.0.

image

AuToTe5ter commented 9 months ago

That didnt resolve issue downgrading to 2.2.0 (deprecated) version of Razor, however i have rolled by to a previous version of ExtentReports for now.

anshooarora commented 9 months ago

This is quite worrisome though as an incorrect package dependency version was associated with your project. A future version may have backward incompatible changes which may cause such issues.