C
C#8mo ago
Kakarott

✅ Need help in reading data from Serial Port

I want to read data from the serial port and display it on the console. I tried using System.IO.Ports; but I am getting this error which I have included as an image. What am I doing wrong? any help is appreciated
No description
11 Replies
Kakarott
KakarottOP8mo ago
I have looked the docs and it uses same code
canton7
canton78mo ago
What .NET version are you targeting?
Kakarott
KakarottOP8mo ago
nothing specific. it was 8 or whatever the default visual studio uses the error says of adding an assembly
canton7
canton78mo ago
IIRC it got moved out to a nuget package at some point
canton7
canton78mo ago
System.IO.Ports 8.0.0
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
Kakarott
KakarottOP8mo ago
which option should I select?
No description
canton7
canton78mo ago
Manage NuGet Packages
Kakarott
KakarottOP8mo ago
thanks !close
Accord
Accord8mo ago
Closed!
Kakarott
KakarottOP7mo ago
Yes. It's working now
Want results from more Discord servers?
Add your server