Intellisense ignores assembly link

I have a link to build a project from one project in my solution to another.

It seems that VS2010 Intellisense does not understand that there is a link; it gives me

  • error The type or namespace name [assembly-specific part of namespace] does not exist in the namespace [namespace common to both projects/assemblies] (are you missing an assembly reference?) in my using statement

  • error The name [class in referenced assembly] does not exist in the current context at the point where I use the class from the referenced assembly.

However, this link works in practice: the link project completes successfully, and the code works fine.

(Both projects are aimed at the same structure. If relevant, this is a SharePoint project, so both assemblies live in the GAC, I don’t know if this means that they can β€œfind” each other, even if the link is actually missing .)

I had similar problems with this assembly from other assemblies before. As a rule, an error is saved only in the error list while the file with the link in it is open.

How everything builds well, it's actually just an annoyance, but I would really like to fix it.

+4
source share
1 answer

In my case, the default solution was for the client profile. When I changed it to the target non-client profile structure, it compiled properly.

Please note that this problem may also manifest as a reverse problem in which Intellisense works, but it will not compile.

enter image description here

+1
source

All Articles