circular reference error in vs2010?

Posted on 2012-09-19
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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    794 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

    16 Experts available now in Live!

    Get 1:1 Help Now