public override SolutionItemConfiguration FindBestMatch(SolutionItemConfigurationCollection configurations)
{
// Get all configurations with the same value for the 'DEBUG' symbol
var matches = configurations.OfType <DotNetProjectConfiguration> ().Where(c =>
c.CompilationParameters.HasDefineSymbol("DEBUG") == compilationParameters.HasDefineSymbol("DEBUG")
).ToArray();
// If the base method can't find a direct match then try to match based on finding a configuration
// with a matching value for the 'DEBUG' symbol and some other heuristics
return(base.FindBestMatch(configurations)
?? matches.FirstOrDefault(c => Platform == c.Platform)
?? matches.FirstOrDefault(c => c.Platform == ""));
}