Replies: 4 comments 1 reply
-
@lev99999 full code snippet please and full stack trace/line numbers |
Beta Was this translation helpful? Give feedback.
-
This is the code:
And this is the results of building: SBuild version 17.4.0+18d5aef85 for .NET |
Beta Was this translation helpful? Give feedback.
-
Change |
Beta Was this translation helpful? Give feedback.
-
Thank You!! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use .net core 7 and I downloaded sharpPcap library to vscode using the command:
dotnet add package SharpPcap --version 6.2.5
The library was successfully installed, but when I try to use this command for example:
using var device = new CaptureFileReaderDevice("filename.pcap");
device.Open();
device.OnPacketArrival += Device_OnPacketArrival;
device.Capture();
(of course I added this: using SharpPcap).
I got this error:
'PacketCapture' does not contain a definition for 'Packet' and no accessible extension method 'Packet' accepting a first argument of type 'PacketCapture' could be found
Thank You
Beta Was this translation helpful? Give feedback.
All reactions