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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:13:00+00:00 2026-06-10T04:13:00+00:00

I am creating a test project in Visual Studio 2010 for my existing project.

  • 0

I am creating a test project in Visual Studio 2010 for my existing project. I have added reference of one DLL that is being used in the project for which I am creating this test project.

Now problem is, after adding the reference of that DLL, when I am trying to execute the test, then I am getting a run time exception as

System.IO.FileNotFoundException: Could not load file or assembly 
'SOME NAME, Version=2.5.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified

I have solved this issue by changing Copy Local attribute of that reference to True. But I dont want to change it to true. Because I dont want to make copy of this in test project’s debug folder.

Is there any other way to do so?

  • 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-10T04:13:02+00:00Added an answer on June 10, 2026 at 4:13 am

    This is an important question I asked myself some years ago and found the following practical solution:

    • put all application dll (to test) in $root$\bin\Debug
    • put all your test dll in $root$\bin
    • for each test dll or exe, have a App.config file that looks like the content below (note that I include in the probing paths, .\Debug of course, but also .\NUnit\bin because I put the NUnit assemblies there)

    <?xml version=”1.0″ encoding=”utf-8″ ?>
    <configuration>
    <runtime>
    <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>
    <probing privatePath=”Debug;NUnit\bin” />
    </assemblyBinding>
    </runtime>
    </configuration>

    enter image description here

    Btw, just never use Copy Local = true, I wrote white books on this topic (it can slow down compilation time up to 10 times!)

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

Sidebar

Related Questions

Im creating an unmanaged DLL in Visual Studio 2010. In order to test my
When I am creating a test project in Visual Studio, do I just create
I was trying a test project for creating a visual studio addin in C#.
I am creating a visual studio set-up project. I need to test to see
I'm having serious problems with creating a Web service in Visual Studio 2010 (Framework
I am creating a new Silverlight project in Visual Studio 2008 Sp1. Further creating
I work with Visual Studio 2010. I wanted to create a Project (Windows Forms
I am creating a Menu test for my restaurant as a project and I
I have the following couple of C pre-processor macros for creating test functions: //
I am running Windows 7 Ultimate and Visual Studio 2010 Ultimate. Somehow, in some

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.