Microsoft.VisualStudio.Project.ConfigProvider.GetSupportedPlatformsFromProject C# (CSharp) Method

GetSupportedPlatformsFromProject() protected method

Return the supported platform names.
protected GetSupportedPlatformsFromProject ( ) : string[]
return string[]
        protected virtual string[] GetSupportedPlatformsFromProject()
        {
            string platformsString = this.ProjectManager.BuildProject.GetPropertyValue(ProjectFileConstants.AvailablePlatforms);

            if (platformsString == null)
            {
                return new string[0];
            }

            string[] platforms = platformsString.Split(',', ';');
            for (int i = 0; i < platforms.Length; i++)
            {
                platforms[i] = GetPlatformNameFromPlatformProperty(platforms[i]);
            }

            return platforms;
        }