Search code examples
visual-studioversion-controlprojects-and-solutions

Is it ok to have different solution files in TFS for projects?


Currently we have a solution with ProjA, ProjB, ProjC, SetupA, SetupB

SetupA and SetupB are not used very often and cost quiet some time to build. And usually only 1 developer needs to use these setup projects.

So is it ok to create another solution only include ProjA, ProjB, ProjC in source control? this does not look quite right to me, but I do not know what is a better way to do it?

Thanks!


Solution

  • You don't have to consider your version control system if using multiple solutions since only the sln files are referencing the project files but not vice versa. I've used multiple solution files in a couple of customer projects with several source control systems - TFS, Subversion, Clear Case ... The downside of multiple solutions is maintenance - new or deleted projects must be potentially added/removed in several solutions, if you forget it, it may break the build.

    An alternative could be usage of the free Funnel extensions, different load filters can be used for different tasks within one single solution file. Only projects contained in the particular filter are loaded and compiled. Load filters are stored in plain files and can be shared in the team using a version control system.