Solved

Circular Dependency is desirable but VS .NET will not allow it

Posted on 2004-08-12
1
412 Views
Last Modified: 2010-08-05
I am trying to reference a DLL using the Projects tab under Add References.

When I do...it says that adding the DLL will create a circular dependency...and it does not allow the add to happen.

BUT what if I NEED this DLL???

What I am saying is...the circular dependency is correct....but I still want to have it.

How can I get around this?
0
Comment
Question by:knowlton
1 Comment
 
LVL 2

Accepted Solution

by:
davidastle earned 500 total points
ID: 11787708
Hmm... i just started up to visual studio .NET instances, created two class libraries, compiled them both, then successfully added the references to eachother.  

Try this: (from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxerrCircularDependency.asp)
The project referenced in the error message might depend upon the selected project in order to build; the selected project depends upon the referenced project to build. Neither project can be built until the circular reference is resolved.

This error usually occurs when one deployment project contains the project outputs of a second deployment project, and the second project contains the outputs of the first project.

To correct this error

Double-click the error in the Task List to open the selected project in the File System Editor.
Select the project output group for the project referenced in the error message.
On the Edit menu, choose Delete.

If this doesnt work... can you be more specific about your problem?  I found some other articles that explain possible causes.

http://support.microsoft.com/default.aspx?scid=kb;en-us;255757
http://support.microsoft.com/default.aspx?scid=kb;en-us;193341
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question