VS Code and Serial Port (solved)

cabwav 1 Reputation point


I am new to Visual Studio Code and I am trying to write a C# console program that reads data from a serial port. How do I access the serial port from code? Using System.IO does not contain a reference to Ports.

My apologies for my poor english. Thank you in advance.

VS Code 1.72.2

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,549 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. cabwav 1 Reputation point

    Nvm, I found a way to add a SerialPort:
    Terminal -> dotnet add package system.io.ports

    0 comments No comments