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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:37:28+00:00 2026-05-23T13:37:28+00:00

We have multiple products here that shared some common libraries. These libraries are part

  • 0

We have multiple products here that shared some common libraries. These libraries are part of a separate solution (so they can be built by TFS independently), but the problem is during development, one has to modify the common library, compile it to binary, copy it to the common location, compile the product solution.

In order to avoid this actually I am wondering if its possible to have conditional references, so for a debug configuration, I would reference them as project references, while in release configuration they would be binary references.

  • 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-23T13:37:29+00:00Added an answer on May 23, 2026 at 1:37 pm

    You should be able to do this with conditional constructs by editing the project file directly (VS IDE won’t do this for you).

    For example, you might do something like this using the “Choose” element:

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
        <PropertyGroup>
            <!-- ... --> 
        </PropertyGroup>
        <Choose>
    
            <When Condition=" '$(Configuration)'=='Debug' ">
                <ItemGroup>
                    <ProjectReference Include="..\stuff\MyStuff.csproj">
                        <Project>{4c7bbe47-8d84-45d4-95f0-f640ba59563c}</Project>
                        <Name>MyStuff</Name>
                    </ProjectReference>
                </ItemGroup>
            </When>
    
            <When Condition=" '$(Configuration)'=='Retail' ">
                <ItemGroup>
                    <Reference Include="MyStuff.dll" />
                </ItemGroup>
            </When>
    
        </Choose>
        <!-- Rest of Project -->
    </Project>
    

    MSDN has more information about using conditional constructs.

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

Sidebar

Related Questions

I have multiple classes that all derive from a base class, now some of
I'm building shopping mall website using Yahoo solution. My products have multiple options which
I have a system that supports multiple products. Each product has its own database
Underneath one Project in TFS we have multiple products. This is because for us,
I have multiple threads (C# application running on IIS) running that all need to
I have multiple logos of various companies in various formats that needs to be
We are developing products that will be used in the following way: Various shared
I have been tasked with designing an ecommerce solution. The aspect that is causing
I have a situation with my MVC2 app where I have multiple pages that
I have multiple Linq2Sql Classes such as Article NewsItem Product. They all have a

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.