I have a rather large solution consisting of about 10 different projects. Until now we have shipped the entire solution as a whole to customers, but we are looking into shipping a stripped version of our software.
To this end I would like to exclude several projects from the solution. I know that you can prevent projects from being built in the solution configuration manager. Using macros all code references can be disabled when the stripped configuration is chosen. Unfortunately this does not take care of the project references. Can I make these references conditional depending on the chosen configuration?
It should be a pretty simple matter to remove the project references from the project file using a small script – it would just be a case of removing lines adding those references. The project file format is quite simple.
I suspect that’s likely to be the easiest solution.