c# – VS solution configurations


I’m in C# and Visual Studio as an IDE. I have several executables which use different features, say

  • ProductA referencing LibFeatureA and LibFeatureC and
  • ProductB referencing LibFeatureA and LibFeatureB

I try to manage the projects in one .sln. I wonder whether managing the different configurations via VS solution configurations (and corresponding projejct configurations) is the intended way to do this. If so, would I create configurations Product{A,B}_{Debug,Release}?

How to base these configurations on the standard configurations Debug and Release? Is there a good way to manage the various configurations (in fact, I have more than 10) other than in .sln format?

I already tried passing MSBuild properties to ProjectReferences but that only works for CLI builds and not for design-time builds within the IDE.

Leave a Reply

Your email address will not be published. Required fields are marked *