title: FileNotFoundException: Could not load file or assembly System.IO.Ports
body: <p>Yesterday I've worked on a project and got this exception:</p>
  <blockquote>
  <p><strong><code>System.IO.FileNotFoundException</code>:</strong> Could not load file or assembly. The system cannot find the file specified.</p>
  </blockquote>
  <p>Then I've Googled for hours what the problem could be but didn't find a solution.</p>
  <p>The weird thing is that I've started with a complete new .NET Core project today and I've installed the <code>Lego.Ev3</code> NuGet library and got the same error again.</p>
  <p>This is my code, the exception will thrown on the last line:</p>
  <pre><code>using Lego.Ev3.Core;
  using Lego.Ev3.Desktop;
  
  Brick brick = new Brick(new BluetoothCommunication(&quot;COM10&quot;));
  </code></pre>
  <p>This are more details of the exception in my Lego<sup>©</sup> project:</p>
  <blockquote>
  <p><strong><code>System.IO.FileNotFoundException</code>:</strong> Could not load file or assembly <code>System.IO.Ports, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51</code>. The system cannot find the file specified.**</p>
  </blockquote>
  <p>Is there a setting wrong in Visual Studio?</p>