title: Type or namespace 'MSBuild' does not exist in namespace 'Microsoft.CodeAnalysis' despite being able to navigate to definition
body: <p>I'm trying out Roslyn for the first time and I'm writing a small piece of code to read through a project, classes and class members.</p>
  
  <p>I'm using the <code>MSBuildWorkspace</code> class to create the Roslyn workspace (<code>MSBuildWorkspace.Create()</code>). Below is a small part of the code I've written</p>
  
  <pre><code>using Microsoft.CodeAnalysis;
  using Microsoft.CodeAnalysis.MSBuild;    //Some problem in this line? Read on.
  
  ...
  ...
  
  var workspace = MSBuildWorkspace.Create();
  Solution solutionToAnalyze =
                  workspace.OpenSolutionAsync(pathToSolution).Result;
  IEnumerable&lt;Project&gt; projectsToAnalyze =
                  solutionToAnalyze.Projects;
  ...
  ...
  </code></pre>
  
  <p>When I do a "Go to Definition" on MSBuildWorkspace class, I'm able to navigate to the class's definition and I can clearly see it's namespace to be Microsoft.CodeAnalysis.MSBuild (See image below). </p>
  
  <p><a href="https://i.stack.imgur.com/V5e08.png" rel="noreferrer"><img src="https://i.stack.imgur.com/V5e08.png" alt="enter image description here"></a></p>
  
  <p>But despite this, I keep getting the error message, <strong>"The type or namespace MSBuild doesn't exist in the namespace 'Microsoft.CodeAnalysis' at the using statement that I've highlighted with the comment"</strong>. I just can't seem to get the reason behind this error. Am I missing anything?</p>