dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
684 stars 1.52k forks source link

SerialPort.GetPortNames() Error #10080

Open MaxFun opened 2 weeks ago

MaxFun commented 2 weeks ago

I'm using VS2022, .NET 8, enabled Windows Forms and getting error for " public static string[] GetPortNames();" My "using System.IO.Ports;" is grayed out. Tried adding "public class SerialPort : System.ComponentModel.Component{ }" but it did not fix the problem.

How do you use a serial port with VS2022, .NET 8, enabled Windows Forms?

dotnet-issue-labeler[bot] commented 2 weeks ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 2 weeks ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.