ConfigurationManager.SupportedPlatforms Property


Gets a list of platform names that can be added to this project and which may be added to create build configurations.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

object SupportedPlatforms { get; }

Property Value

Type: System.Object

A SafeArray of strings.

public void CodeExample(DTE2 dte, AddIn addin)
{   // Make sure you have a solution loaded into Visual Studio
    // before running the following example.
        ConfigurationManager configmgr;
        Array arraySP;
        if (dte.Solution.Projects.Count > 0)
            configmgr = dte.Solution.Projects.Item(1).ConfigurationManager;

            // Show all supported platforms.
            arraySP = (Array)configmgr.SupportedPlatforms;
            string sp = "Supported Platforms: \n";
            foreach (string s in arraySP)
                sp = sp + s + "\n";
    catch(Exception ex)
Return to top