Unable to create object
There is a .Cs file in one of the projects in my application and i want to create an object of the class(in some other project inside the application) that is inside the .cs file, i tried to add the reference of that particular project but it is giving 开发者_StackOverflow社区Circular Dependancy error and i am unable to create the object.
Break out common code to a third assembly and reference that one in the other two projects.
You get a circular dependency becuase the project in which the object reside already references the project that you want to use the object in. This is probably a design problem as well.
One solution is to create a new project (Common) that both projects can reference.
精彩评论