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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:17:55+00:00 2026-05-19T05:17:55+00:00

I have an asp.net mvc project and reference a dll to a class library.

  • 0

I have an asp.net mvc project and reference a dll to a class library. I would like the dll to appear in the bin folder of my asp.net mvc project (the latest version after building the asp.net project). This does not happen depite the dll’s property ‘copy local’ being ‘true’. Is this possible anyway?

Thanks.

C

  • 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-19T05:17:57+00:00Added an answer on May 19, 2026 at 5:17 am

    If the class library project is in the same solution as your MVC project, you could set the build directory of the class library to be the bin of your MVC app.

    This will help if you’re not sure how
    http://msdn.microsoft.com/en-us/library/ms165410(v=VS.90).aspx

    If your setup precludes you from changing the output directory, another solution may be to set up a pre build step in the mvc app and use xcopy to copy the dll.

    xcopy /y /r /i "$(SolutionDir)ClassLibrary\bin\myClassLibrary.dll" "$(TargetDir)"
    if errorlevel 1 goto BuildEventFailed
    

    Though, I’m a little curious why the dll isn’t being copied automatically. Are you using any of the types in the class library explicitly; creating instances of, or inheriting from, or anything that would indicate to the compiler you do indeed need this dll? I think VS tries to be helpful and not copy binaries it feels are “useless”

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

Sidebar

Related Questions

I have an ASP.NET MVC 2 project that renders conventional strongly typed pages, but
I have a Windows Form project that I would like to migrate toward a
My ASP.NET MVC 2 application uses Entity Framework 4.0 for the data model. Following
by default, MVC 2.0 come with an english resource file in the System.Web.Mvc.dll. When
I would like to get opinion on the best way to manage the following
I'm facing some architectural problems on the project I'm involved in. The project is
Any ideas why I am getting the below error in my MVC2 project, even
We have a Visual Studio 2010 solution that contains several C# projects in accordance
I'm trying to use WCF Data Service with Subsonic, but ran into this error
Are there good patterns for mapping solution configurations to environments and using MsDeploy for

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.