Forum Xamarin Xamarin.Android

The type or namespace 'Ports' does not exist in the namespace System.IO

For some reason, I am getting this error. I am able to "see" System.IO, but for some reason cannot "see" System.IO.Ports.

Any advice here, it is almost like the .Ports has been redacted, but I am seeing examples that show that this is valid. I am using .net 6.0 and this is an Android application.

This is c#. I need this to do Serial Port communication.

Please help.

Best Answer

Answers

  • SeanBentoSeanBento USMember

    Someone should know this. I think all I need to know is what version of System.dll supports the System.IO.Ports interface. My application is using v1 and it does not include System.IO.Ports. Where can I get v2 of System.dll.

    Here is the path on my computer to the current version I am using:
    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0

    That path has v2.3, v4.03, etc., but none of those folders contain a newer System.dll. Any help?

  • hagnrhagnr USMember ✭✭
    edited December 2016

    Hi @SeanBento.
    Did you find the solution?

    How can I add the Microsoft.SPOT.Hardware.SerialPort.dll?

Sign In or Register to comment.