CS1061 'AllureLifecycle' does not contain a definition for 'AddAttachment' and no accessible extension method 'AddAttachment' accepting a first argument of type 'AllureLifecycle' could be found (are you missing a using directive or an assembly reference?) ATFramework (net6.0) #2652
Unanswered
Roman-Tretiakov
asked this question in
Bug Reports
Replies: 1 comment 3 replies
-
Please, use the AllureApi.AddAttachment("Screenshot", "image/png", screenshotPath) It's in the using Allure.Net.Commons; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed Allure.Net.Commons as alternative of Allure.Commons. And my old code doesn't work when I try to add screen shot attachment :
AllureLifecycle.Instance.Attachment("Screenshot", "image/png", screenshotPath);
I have got following error: CS1061 'AllureLifecycle' does not contain a definition for 'AddAttachment'
I try to use AttachmentAsync method instead, but result is the same. Please help me.
Beta Was this translation helpful? Give feedback.
All reactions