Solved

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

Posted on 2004-08-12
1
406 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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