GetDefineSymbols() public méthode

public GetDefineSymbols ( ) : IEnumerable
Résultat IEnumerable
Exemple #1
0
        public override SolutionItemConfiguration FindBestMatch(SolutionItemConfigurationCollection configurations)
        {
            // Get all configurations with the same value for the 'DEBUG' symbol
            var isDebug = compilationParameters.GetDefineSymbols().Contains("DEBUG");
            var matches = configurations.OfType <DotNetProjectConfiguration> ().Where(c =>
                                                                                      c.CompilationParameters.GetDefineSymbols().Contains("DEBUG") == isDebug
                                                                                      ).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 == ""));
        }