Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9140347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:30:17+00:00 2026-06-17T09:30:17+00:00

I inherited a code base that wasn’t well thought out, and am running into

  • 0

I inherited a code base that wasn’t well thought out, and am running into some circular reference problems. My team doesn’t currently have the time or resources to do a huge refactor, so I was wondering if there was some switch that I could flip that says “build these two dlls atomically.”

A simplified example:

DLL D0:
    class A1 -> References B1
    class B1 -> References A1

Class A1 and B1 have references to each other, and as they’re in the same DLL, this is fine – but they don’t have much in common so I want to break them out into separate dlls.

However, the following is impossible because of a circular reference problem:

DLL D1: class A1 -> References D2.B1
DLL D2: class B1 -> References D1.A1

I want to be able to tell MSBuild to build (D1+D2) as if all of the code were in a single dll. Is there anything I can do here or do I follow SOP and “hack it in?”

Disclaimer: I understand this implies I have a much bigger problem with my model (the most glaring is an improper use of interfaces), but in the small company, real world scenarios dictate that I bend over backwards to fix production bugs at the expense of best practices.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:30:17+00:00Added an answer on June 17, 2026 at 9:30 am

    My team doesn’t currently have the time or resources to do a huge
    refactor

    so… DO NOT DO THIS:

    but they don’t have much in common so I want to break them out into
    separate dlls.

    Leave it alone until you can apply significant refactoring to the whole solution.

    This is a case where refactoring an organizational peeve will force a huge amount of refactoring down stream. And you have much bigger problems to deal with. I’ve been there. I feel for you. Good luck mate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've inherited some code on a system that I didn't setup, and I'm running
Ive inherited some code which started out as an Android project but really is
I've inherited some code which breaks a page up into tabs using divs. On
Im trying to unit test a class in some Java code that I've inherited.
I inherited a moderately large sized code base that makes extensive use of mysql_fetch_assoc
My situation is that I screwed up essentially. I inherited my code base about
Unfortunately I inherited some code (c/c++) that does some string manipulation and now I
I have an inherited code base that was developed in .NET 1.1. When I
I'm a complete .NET/C# nublet. I've inherited some code that defines the UI for
In a code base that I've inherited, there's an MDB which is calling SingletonBeanFactoryLocator().getIntance().useBean()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.