static void Remove(Solution solution, string name, bool isPlatform) { if (isPlatform) { solution.RemoveSolutionPlatform(name); } else { solution.RemoveSolutionConfiguration(name); } }