title: How to resolve `unresolved import 'XXX'` in a Visual Studio IronPython environment?
body: <p>I am developing IronPython scripts in Visual Studio 2019.</p>
  
  <ul>
  <li>The Python scripts work (i.e., they run without error).</li>
  <li>Visual Studio's autocomplete correctly offers options (<code>clr</code>, <code>sys</code>, <code>System</code>) when I type <code>import</code><em>&lt;space></em>.</li>
  </ul>
  
  <p>But when I type (or select) a choice on the list, it gets flagged (underlined in a squiggly green) with the error <code>Unresolved import 'XXX'</code> (where "XXX" is one of the choices on the autocomplete list). Within the editor, it is clear that the modules (namespaces) were not imported (i.e., no autocomplete on the imported modules).</p>
  
  <p>What could be going on here? Autocomplete works, but Intellisense (or the analyzer) does not.</p>
  
  <p>I have tried both 64- and 32-bit IronPython 2.7 environments. I have also tried typing the import statements into the interactive window without error. And, as I said above, the scripts work. I can run them and they work.</p>
  
  <p>The code to reproduce is quite simple:</p>
  
  <pre class="lang-py prettyprint-override"><code>import System
  import clr
  import sys
  </code></pre>
  
  <p>All 3 of those examples work with autocomplete. All 3 of those lines get flagged as unresolved and do not import within the editor.</p>