circular reference error in vs2010?

Posted on 2012-09-19
Medium Priority
Last Modified: 2012-09-19

I have two projects and I referenced project A in project B so I can use classes in project A.
I need to use classes from projectB so I tried to reference projectB in the projecta but it won't let me do it.

I am getting the circular reference error.

I tried to use the import but it didnt recognize projectB namespace.

What's wrong here?
Question by:dkim18
1 Comment
LVL 25

Accepted Solution

Luis Pérez earned 2000 total points
ID: 38413746
Nothing's wrong. A circular reference is a circular reference. You first referenced project A in  project B, so to build project B the compiler needs first to build project A to check everything's OK. But, if is mandatory to build project A in order to build project B, it MUST no be mandatory to build project B in order to build project A. Because... which build first?

If you need to add another project with all the common stuff, it will be a good idea. Then reference that project from project A, or B, or anyone.

Hope that helps.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 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