public string ValidateName(string name) { if (name == null) { return(null); } name = name.Trim(); if (!ConfigurationAndPlatform.IsValidName(name)) { return(null); } if (isPlatform) { return(MSBuildInternals.FixPlatformNameForProject(name)); } else { return(name); } }
internal IEnumerable <ConfigurationAndPlatform> LoadSolutionConfigurations(IEnumerable <KeyValuePair <string, string> > section) { // Entries in the section look like this: 'Debug|Any CPU = Debug|Any CPU' return(section.Select(e => ConfigurationAndPlatform.FromKey(e.Key)) .Where(e => ConfigurationAndPlatform.IsValidName(e.Configuration) && ConfigurationAndPlatform.IsValidName(e.Platform))); }