This is a little spooky.
I'm thinking there must be a setting somewhere that explains why this is happening.
In our solution there are about 50 different projects. For the most part, the libraries start with the namespace OurCompany.
We have OurComany.This.That and OurCompany.Foo.Bar... etc.
There is a namespace/class clash between an external library with the namespace
OurCompany.Foo.Bar
And a class that is qualified like so..
OurCompany.Some.Location.Foo
The error goes like this:
Error 75 The type or namespace name 'MethodName' does not exist in the
namespace 'OurCompany.Foo' (are you missing an assembly reference?)
Even Resharper gives me a "Qualifier is redundant" message when I fully qualify anything under the "OurCompany" namespace.. i.e.
OurCompany.Some.Location.Foo.MethodName();
//OurCompany is redundant
I cannot figure out what on earth is doing this. The solution is pretty huge, so ripping things apart to try and reverse engineer the problem is not a great solution for me.
I should state that if I use...
Some.Location.Foo.MethodName(); //Leaving out OurCompany
...the Resharper message goes away.