2 years ago

#69142

test-img

Timo

Building a C++ project with two different configurations in the same solution configuration

We have multiple C++ projects in our solution that all support different configurations (I'll omit some uninteresting ones here):

  1. Shared (Debug, DebugMD)
  2. A (DebugMD)
  3. B (Debug)

Both A and B depend on Shared, but A depends on Shared (DebugMD) and B depends on Shared (Debug).

We have one solution configuration Debug, that builds:

  • Shared (Debug)
  • A (DebugMD)
  • B (Debug)

However, this configuration breaks A, because we don't build Shared (DebugMD). Is it possible to build Shared (Debug) and Shared (DebugMD) within the same solution configuration (without batch builds)?


I've read Can I build multiple configurations of a project within one solution configuration?, but this only seems to work for .net projects (or at least I couldn't get it working for .vcxprojs).

visual-studio

visual-c++

msbuild

visual-studio-2019

0 Answers

Your Answer

Accepted video resources