title: Visual Studio saying name doesn't exist in current context
body: <p>I am calling a static method on a class like</p>
  
  <pre><code>Foo.bar()
  </code></pre>
  
  <p>Visual studio's intellisense recognizes Foo and autocompletes bar for me (it highlights Foo and everything like it is working fine). Everything looks fine until I go to build the project, and it throws an error saying the name Foo doesn't exist in current context.</p>
  
  <p>I am using this static method call in other files, so I know the class is ok. The situation is too big to post code, so I am mostly looking for reasons to start looking into that would cause intellisense to function normally but get errors on compile like this. </p>