Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
  3. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here:
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

Scripting [SOLVED!] The type or namespace name `Ports' does not exist in the namespace `System.IO'.

Discussion in '5.3 Beta' started by TomasRiker, Nov 9, 2015.

  1. TomasRiker


    Jan 26, 2012
    Sorry for the false alarm. I didn't realize that Unity had switched the target platform to the Web Player (don't know why it did that). After setting it to Desktop, all works fine again.


    in earlier Unity versions, I successfully used the System.IO.Ports namespace in order to access the serial port. This seems no longer possible in the latest Beta, although I use the full .NET framework and not the subset. I get the following error:

    The type or namespace name `Ports' does not exist in the namespace `System.IO'. Are you missing an assembly reference?

    Is this intentional?
    Last edited: Nov 9, 2015