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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:38:49+00:00 2026-05-29T03:38:49+00:00

Hereis the situation: I have a folder that contains library DLLs, which are not

  • 0

Hereis the situation:

I have a folder that contains library DLLs, which are not built as part of my solution – lets say it is .\libs.
I add references to these DLLs. I then build. Everything is fine.

If I then delete the libs folder and rebuild my solution, the compilation still succeeds! Weird – I would have expected compilation errors since the library dlls are not there!

But looking at the reference properties in Visual studio, I see that the reference path has been changed from .\libs\foo.dll to myproject\bin\Debug\foo.dll. So it is picking up the referenced DLL from its old build output.

If I open myproject.csproj in a text editor, I see that the HintPath of the reference is still .\libs\foo.dll. If I re-create the libs folder, visual studio still uses myproject\bin\Debug\foo.dll (it does not revert to the actual DLL I want!)

Is this expected behaviour?
Is there a way to stop this behaviour because it is causing me problems – especially when I want to rebuild myproject with different versions of the libs: half the time I find that I am using a different version than what I wanted.

  • 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-05-29T03:38:50+00:00Added an answer on May 29, 2026 at 3:38 am

    This is not magic. Your DLL’s Copy Local Property is probably set to true, that’s all.
    Setting it to false will get you the desired behaviour.

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

Sidebar

Related Questions

Here is my situation: I have one table that contains a list of drugs
Let's say i have 2 files located in the same folder. /Test/View.cshtml <h1>File that
here is the situation: i have one machine which lives at my house (lets
Here is my situation: I have an application that use a configuration file. The
Here is the situation. I have some javascript that looks like this: function onSubmit()
Here is my situation. I have written a WCF service which calls into one
Here is situation I have been trying to solve Lets take a Employee table
Here is the situation: I have to create a program that would input another
Here is my situation: I have program A which looks like this: Fmfile IF
OK here is the situation: I have an externally hosted CMS which works great

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.