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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:12:00+00:00 2026-05-22T17:12:00+00:00

We have a problem with our project files, which is annoying. Example: We have

  • 0

We have a problem with our project files, which is annoying.

Example:

We have a solution with projX and projY, which reference the assembly log4net.

Say, e.g. somebody moves the assembly file and only updates the reference in projX + then commits without discovering the missing assembly – then the reference goes missing in projY.

The next time I do a checkout and open the solution the projY has the reference correctly marked by VS2010 as missing, with a little exclamation mark. So far so good. 🙂

Problem:

Now if I do Build of the solution then the assembly reference is magically updated in projY to point to projX’s BIN folder! (In this case projX has to be build BEFORE projY)

It appears that VS2010 searches our solution tree and adds the assembly automatically if it can find a matching one.

Nice feature, but also a bit dangerous and very misdirecting. For example the assembly might end up having a path which points to another projects bin folder.

Question:

Is there any way to disable this behaviour and just get a compile error, which prevents the build?

Notes:

  • We shifted to using NuGet recently.
  • We have defined our own output folder -> files are not placed in Bin\Debug but in ..\output.

[EDIT]

Updated the example for more clearity.

[EDIT]

Searching the web for a solution I found this articale which describes a related problem, where VS2010 also auto adds references but from in this case from the GAC. Our assemblies are NOT in the GAC. http://blog.scrappydog.com/2010/07/bug-tfs-2010-outsmarts-itself-and-auto.html

[EDIT]

Tried fixing this using a Reference Path in the project. The idea was that VS would search the Reference Path first and project bin folders second. But no luck. It still takes the assemblies from the output folder.

  • 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-22T17:12:00+00:00Added an answer on May 22, 2026 at 5:12 pm

    No, there is no known workaround about this.

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

Sidebar

Related Questions

We have the problem that we have the open project files in our SVN
We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and
We have some auto-generated resource files in our project in Visual Studio 2008, with
I have a .NET solution which consists of several projects. It's possible to say
We have a problem in our swing based application since we've upgraded our java
I'm trying to get a handle on whether we have a problem in our
So here is our problem: We have a small team of developers with their
We have a common problem of moving our development SQL 2005 database onto shared
I have a problem. Actually in our application, earlier the customer was allowed to
We have encountered a very strange class not found problem in our web app

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.