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
Thats a weird one but it should be agnostic to Version ie its also applicable to VS 2005 and VS 2008.
I just tested this like 5 mins ago just to make sure in VS 2008 Pro Edition using .Net 3.5 and C#. NO PROBLEMS MATE !!!
Just try following them steps and trouble shoot things as you go along as I made them steps before testing them and they still worked exactly fine afterwards when i did test them :p.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.