I think I know why it doesn't work . I guess I need to upgrade .net version
>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3274: The primary reference "ExtentReports" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
Instructor
gunjan Replied on 26/12/2018Is it working now?
Hi Gunjan
I updated .net so don't get the same error but I am getting an exception now on this line:
ExtentTest test = rep.CreateTest("LoginTest");This is the exception:
(Note: rep is not null)
Instructor
gunjan Replied on 26/12/2018Can you share the entire code
It works now Gunjan, you can close this query now