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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:55:05+00:00 2026-05-18T02:55:05+00:00

This one may be a bit strange. I have a solution in Visual Studio

  • 0

This one may be a bit strange. I have a solution in Visual Studio 2010 with three C++ projects. Two libraries and one executable application. Two configurations. In one configuration, I need the executable application to have a project dependency on one library, in the other configuration I need the executable application to have a project dependency on other library.

With specifics, there’s a Direct3D9 implementation in the first library and an OpenGL implementation in the second library. The third project is a test harness that uses the same interface for both, the only difference is which library it links to. Two configurations exist in the test harness project, one for each implementation. I can not set the test harness project to depend on each implementation library individually based on active configuration.

How can I make the project dependencies configuration-specific?

  • 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-18T02:55:06+00:00Added an answer on May 18, 2026 at 2:55 am

    Is the C++ project format msbuild? If so, you should just be able to put a condition on the reference. Reference both projects and then edit the project file and add a condition on each one. This is how it would work in a C# project, not sure if c++ is the same:

    <ProjectReference Include="..\DirectXLib\DirectXLib.csproj" Condition=" '$(Configuration)' == 'DirectX' ">
      <Project>{99999-9999-9999-9999-99999999999}</Project>
      <Name>DirectXLib</Name>
    </ProjectReference>
    <ProjectReference Include="..\OpenGLLib\OpenGLLib.csproj" Condition=" '$(Configuration)' == 'OpenGL' ">
      <Project>{99999-9999-9999-9999-99999999999}</Project>
      <Name>OpenGLLib</Name>
    </ProjectReference>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Bit of a strange one this. Please forgive the semi-pseudo code below. I have
I think this one is silly question, but it was a bit strange for
Okay this one may be a bit out from left field, but I'm going
This one may be a bit specialized, but here goes anyway: Page for reference:
I'm having a bit of trouble with this one, as basic as it may
This may be a bit of an odd question, and what I have in
This one is a bit tricky to explain so I accept more detail may
Okay, so this one may be difficult but I will do my best to
On day one I may receive large CSV output such as: this,is,a,test bob,is,your,uncle sound,one,Zen
This may not be the kind of question one should ask on StackOverflow, but

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.