using System;
using System.IO.Ports;
public static void getPorts()
{
string[] ports = SerialPort.GetPortNames();
Console.WriteLine("The following serial ports were found:");
foreach (string port in ports)
{
Console.WriteLine(port);
}
Console.ReadLine();
}
I have problem with this simple code. I need to write out my ports because I will work with them later on (I'm using that simple function in my bigger app). Everything was working until I upgraded my Windows. Do you have any idea what could be the problem? I have also installed all drivers.