The type or namespace "MyNamespace" does not exist, etc.

I have the usual type or namespace name, there is no error, except that I referenced the assembly, the using statement does not appear to be invalid, and the classes I refer to are public. In fact, I reference and use the same assembly in a different solution to do the same, and it works great.

This is VS2010, by the way.

Any ideas anybody?

Ed

+4
source share
1 answer

I found the answer to this problem if anyone is interested.

In my main application, I am targeting the .NET Framework 4 client profile, but in one of the reference assemblers, I am targeting the complete .net infrastructure. Although intellisense and Visual Studio itself do not report a problem, the compiler throws an error. Not an error related to the mind of the target structure, just an error β€œType or namespace does not exist” related to my namespace, and not the lack of a framework version in the client profile.

Ed

+10
source

All Articles