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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:13:33+00:00 2026-06-01T14:13:33+00:00

I have a Visual Studio 2010 C# project which creates an .exe and this

  • 0

I have a Visual Studio 2010 C# project which creates an .exe and this project is using some 3rd party class library.
My project is located in: /MyFramWork/tests/test1
3rd party library is located at: /MyFrameWork/bin/utils/

I am adding the reference to the library by using References->Add Reference->Browse. I can see that in the project file all is fine:

….\bin\utils\log4net.dll
False

I would like to reference the 3rd party library without using the option “Copy Local”. However if I don’t use the option, the library is not found and I get an exception.

My question is: Is there a way to specify that the 3rd party library should be found at ….\bin\utils. It seems that when the .exe gets build the information from the .csproj gets lost.

  • 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-01T14:13:34+00:00Added an answer on June 1, 2026 at 2:13 pm

    By default, .NET apps look for their dependencies in only two places: the EXE directory, and the GAC (Global Assembly Cache).

    You have three choices:

    • You can make sure the dependency gets copied into the same directory as your EXE (this is what Copy Local does). This is the best choice most of the time, which is why it’s the default when you reference an assembly that’s not already in the GAC.
    • You can install your dependency into the GAC using gacutil. This might be a good choice if your dependency isn’t going to change, is going to be in a different location on every development machine (i.e. if relative paths won’t work well), and if you want to use it from many different projects. But it’s a major pain if the dependency is still under active development and changing frequently. You’ll also need to make sure to put the DLL into the GAC on every computer you deploy your app to.
    • You can customize the dependency-loading behavior so it looks in other places, as Hans noted in his comment. This is an advanced option and comes with a whole new set of headaches.

    Normally, you would just use Copy Local; it’s a very sensible default. You should need a fairly compelling reason to do anything different.

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

Sidebar

Related Questions

I am using visual studio 2010 and tried to create a class library which
I have a Setup Project in Visual Studio 2010 which creates a .msi installer.
I have a website which was created using Microsoft Visual Studio 2010. I want
I have a visual studio-2010 project which contains lots of source files and header
I have a Windows project in Visual Studio 2010 in which I store all
I have a Setup Project that I made using Visual Studio 2010. The application
I have created a Visual Studio 2010 setup project, which contains two executable files
In my Visual Studio 2010 project I have files with .mm file extension, that
I have a C# application, and a Visual Studio (2010) Setup Project with it.
In Visual Studio 2010 I have an ASP.NET MVC 3 project called blahblah. As

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.