I've added two c# class library projects to a Windows Application project, they turn up as expected and I can write some code that references the namespaces which are both declared at the top of the class (using) and the intellisense and syntax highlighting works as expected, but as soon as I build the code it tells me that the namespaces can't be found and asks me whether I'm missing a reference... the syntax highlighting also disappears. If I remove the references and add them again the highlighting comes back until I build it again and then the cycle just repeats itself. Any clues would be greatly appreciated.
I've tried cleaning the entire solution and also restarting VS.
As per commment/answer:
I had a reference to System.Web in the class project with a target of ".Net Framework 4" the Win Forms app was set to ".Net Framework 4 Client Profile" and wouldn't allow me to add System.Web, changing it to just ".Net Framework 4" fixed the issue