Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now