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 8390041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:52:59+00:00 2026-06-09T18:52:59+00:00

So the problem is quite simple: My project references assembly X but not Z.

  • 0

So the problem is quite simple: My project references assembly X but not Z. But assembly X does reference assembly Z. Assembly Z updates somewhat frequently, so whenever I build my project, I’d like to get the latest version of Z as well.

So far I’ve come up with 3 options:

  1. reference the assembly Z. This has the advantage of getting the new version, always. But it does pollute the references with something that isn’t strictly required in there.
  2. Add a post-build event that copies the required DLL(s) from where they are updated. I think this is quite ok, until I need multiple different DLLs, which would make the script quite long and tedious to maintain.
  3. Add the assembly Z as a resource and set copy to output to true. This one I would probably prefer, except that when I add the DLL to the project, visual studio actually copies the (then) current version in to the project, and there is no link to the original source. Thus, when the assembly is updated, this is not reflected in any way in my project. Unless I combine this approach with option number 2, but then I might as well just use option 2 alone.

So, am I missing something, or are these my only options?

  • 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-09T18:53:00+00:00Added an answer on June 9, 2026 at 6:53 pm

    I would go with option 1. I think it’s entirely reasonable for your project to reference everything it depends on, even if those dependencies can sometimes be indirect.

    It also seems like the simplest option to me – and one which fits in with Visual Studio’s view of code dependencies that your app requires… so anything that Visual Studio does with those dependencies should just naturally flow, rather than you having to think about this at every stage.

    EDIT: As an alternative option, have you considered using NuGet? That way you’d only express a dependency on X within your project’s NuGet dependencies, but it would “know” that it depended on Z. I believe it should all just work… You should be able to do this even if these are internal projects, as you can set your own NuGet source rather than the public repository.

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

Sidebar

Related Questions

My problem seems to be quite simple, but it's not working the intuitive way.
I have a problem that is quite simple to understand, but for me it
I have a seemingly simple problem, but I can't quite figure out a solution.
I noticed people wrote about this circular reference problem quite a bit before but
My problem is quite simple - I think. I'm doing an ASP.NET MVC project.
My problem seems to be quite simple, but I've been stuck on it for
This problem is probably very simple to solve but it is not clear to
My problem is quite simple: I have a 400MB file filled with 10,000,000 lines
The problem is probably quite simple. $q = SELECT id FROM users WHERE name
I've got a quite strange problem here. I'm calling some simple code via Ajax.Updater:

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.