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

  • SEARCH
  • Home
  • 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 151567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:28:12+00:00 2026-05-11T09:28:12+00:00

I am wondering what to include when building my project. I have a library

  • 0

I am wondering what to include when building my project. I have a library I need to reference for my project to build but that library has 10 dependencies itself. Should I reference those dependencies as well or should I copy them to the output directory using a post build event?

What is the best practice?

I find it confusing to include all those dependencies as the project compiles fine without them – are they then called runtime dependencies? My references become cluttered with dependencies irrelevent to my project even though they are used in some library I am including.

I am using Visual Studio.

Can someone please give me some insight into how to do this right.

Thanks.

  • 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. 2026-05-11T09:28:13+00:00Added an answer on May 11, 2026 at 9:28 am

    You only need to add references that are directly used by your project.

    For private assemblies (those not in the GAC) Visual Studio will, by default, copy referenced assemblies (and their dependencies) to your project’s output directory.

    For assemblies in the GAC Visual Studio doesn’t copy the referenced assembly to your project’s output directory by default.

    In both cases you can change the behavior by changing the ‘Copy Local’ reference property.

    IMHO, it’s a nifty feature of the build environment. In the unmanaged world it’s up to you to keep track of your dependencies’ dependencies (usually through pre or post build events).

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

Sidebar

Related Questions

I have a static library that I am building in C++. I have separated
I have to build an Eclipse-plugin with a Maven/Tycho which has dependencies to other
I was just wondering what license agreement I should include in an XNA Framework
Ok, so I'm building a website that has client profiles. A web user finds
Hey I'm wondering when accessing Zend_Registry in an application if you need to include
I am building an application that will need to use a mapping service to
I have a map in my application that needs to be searchable by building
I was wondering when you need to use module_load_include() or require_once to include files
I'm wondering if I can use CoffeeScript to include other standard JS files (as
I was wondering whether you could use a trick of the compiler to include

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.