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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:00:40+00:00 2026-06-01T19:00:40+00:00

I have an MVC3 project in VS2010 (Project A) and I want to reference

  • 0

I have an MVC3 project in VS2010 (Project A) and I want to reference an assembly in one of my other projects (Project B). Project B outputs to \bin\Debug and \bin\Release. I want to add a reference to the proper Project B assembly, based on the configuration of Project A. Is there a way to do this without having to include Project B in Project A’s solution? I’ve always included the project in my solution if I’ve needed to do this in the past, is this the only and best option?

  • 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-01T19:00:43+00:00Added an answer on June 1, 2026 at 7:00 pm

    IMO adding the project to solution is much better if you have access to the project, if you want to make the reference point to different file locations based on the current configuration you can open up the csproj file in a text editor and modify the Reference hint by introducing a macro and the reference path will vary accordinlgy. For example you can do something like this in A.csproj

    <Reference Include="B,...">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\ProjectB\bin\$(Configuration)\B.dll</HintPath>
    </Reference>
    

    and when you reload the project and view the reference properties you will see that the path changes with the selected configuration.

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

Sidebar

Related Questions

I have two projects in my solution... a domain project and MVC3 web project
I have one solution in VS2010 containing two MVC 3 projects. These are two
Using: MVC3, Vs2010, and a DbProject In a Solution I have an MVC3 project
I have installed MVC3 RTM and when using VS2010 to create a blank project
I have a new MVC3 project with one Controller called PublicController.cs which contains 4
I have MVC3 project & Valums file uploader . The code is following <script
I have a MVC3 project for running on the iPad in the web-app mode.
In an ASP.NET MVC3 project I have a structure like this: Core.csproj -> 3rdparty1.dll
Working on an MVC3 project. I have an area named Area with an areaRegistration
I am writing a MVC3 project. Right now I have a table which has

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.