K
Kav4
Guest
Hello,
I started a c# console app using visual studio 2019. Am getting an error: The type name 'SerialPort' could not be found in the namespace 'System.IO.Ports'
I have checked the object browser and the System.IO.Ports is there. Here is the code, really not much yet just can't get past this error. Thanks for any help.
using System;
using System.IO.Ports;
using System.Threading;
public class PortChat
{
static bool _continue;
static SerialPort _serialPort;
public static void Main()
{
// IO port example code here
}
}
Continue reading...
I started a c# console app using visual studio 2019. Am getting an error: The type name 'SerialPort' could not be found in the namespace 'System.IO.Ports'
I have checked the object browser and the System.IO.Ports is there. Here is the code, really not much yet just can't get past this error. Thanks for any help.
using System;
using System.IO.Ports;
using System.Threading;
public class PortChat
{
static bool _continue;
static SerialPort _serialPort;
public static void Main()
{
// IO port example code here
}
}
Continue reading...