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

GetPlatformsFromProject() protected method

Gets all the platforms defined in the project
protected GetPlatformsFromProject ( ) : string[]
return string[]
        protected virtual string[] GetPlatformsFromProject()
        {
            string[] platforms = GetPropertiesConditionedOn(ProjectFileConstants.Platform);

            if (platforms == null || platforms.Length == 0)
            {
                return GetDefaultPlatforms();
            }

            for (int i = 0; i < platforms.Length; i++)
            {
                platforms[i] = GetPlatformNameFromPlatformProperty(platforms[i]);
            }

            return platforms;
        }