Hi all,
I am having a problem I just couldn't solve and would like some input.
I am working with multiple class libraries in Visual Studio 2010, .net 4.0 Framework, in C#. I have a class library project which references the assembly output(.dll file) of another Visual Studio solution. The reference was added correctly to the class library project (correct path, version, etc.). All types dependant on the referenced assembly are known by the compiler at design time (no red squiglies).
However, when I attempt to build the project I get the following error:
The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'MyAssembly, Version=1.0.1.1, Culture=neutral, PublicKeyToken=null'.
Note: type name replaced by x above.
It is as if the reference has not been added, but it has. Has anyone else encountered a similar problem and discovered a work around?
Thanks so much, Andrew