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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:37:18+00:00 2026-05-31T04:37:18+00:00

I have a class library which I maintain in it’s own project/solution. It contains

  • 0

I have a class library which I maintain in it’s own project/solution. It contains a few basic functions I’ve written, that I use in some older VB.NET applications mainly.

I’m doing some work on one such application, and it has required changes to the Library assembly as well as the main application. However, I’m finding that when I change and compile the library, when I come to re-compile the main application I get an error:

Error 8 Unable to load referenced library 'myLibrary.dll': The process cannot access the file because it is being used by another process.

I’ve specified the ‘myLibrary\bin\Release\myLibrary.dll’ as the reference in the main project. I know in the past that I had the library project in the same solution, thus I could specify the project as a reference, rather than the release DLL, but I’d prefer to keep the projects separate.

Re-specifying the reference or reloading the main project solves the problem (temporarily at least), but I’d rather find a more sophisticated solution.

  • 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-31T04:37:19+00:00Added an answer on May 31, 2026 at 4:37 am

    Why prefer to keep them separate? If they’re part of the same codebase, they should be in the same solution. By short-circuiting this you’re effectively limiting the development capabilities of Visual Studio with regards to the referenced assembly in the codebase. Additionally, referencing the bin output is very messy. If you want it to be a standalone library, have it build its output and copy that output to a lib folder somewhere. Then you can reference the final output, not the highly-transient bin directory.

    Essentially, in terms of “find[ing] a more sophisticated solution,” it’s a matter of using the tooling that Visual Studio provides. Organizing code into solution files is part of that tooling.

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

Sidebar

Related Questions

I have a class library project which contains some content files configured with the
I have an solution in VS 2008 which contains two class library projects and
I have a class, which is part of a code library project that was
I have a class library project which contains a java script file libscript.js which
I have a class library project which uses a namespace (e.g., Cosmos.Creator.Util). I then
I have a class library which is being used by another project, it is
I've got a Silverlight class library which contains ResourceDictionary objects with styles that I
I have a Class Library project which houses some shared code between other projects
I have a Silverlight class library project which is referenced (project reference) in Windows
I have a .NET class library that spins up a secondary process which is

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.