Configuration.IsDeployable Property


Gets whether the project or project item configuration can be deployed.

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

bool IsDeployable { get; }

Property Value

Type: System.Boolean

A Boolean value indicating true if a project or project item can be deployed, false if not.

To indicate whether a project or item should be deployed, specify it in a SolutionContext as the configuration that has context and deploys for a given solution configuration.

public void CodeExample(DTE2 dte, AddIn addin)
{   // Make sure you have a solution loaded into Visual Studio
    // before running the following example.
        Project prj;
        Configuration config;
        if (dte.Solution.Projects.Count > 0)
            prj = dte.Solution.Projects.Item(1);
            config = prj.ConfigurationManager.ActiveConfiguration;
            // Determine and show whether the active configuration can be deployed.
    catch(Exception ex)
Return to top