Compartir a través de


SolutionBuild Interface

Represents the root of the build automation model at the solution level.

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

Syntax

'Declaration
<GuidAttribute("A3C1C40C-9218-4D4C-9DAA-075F64F6922C")> _
Public Interface SolutionBuild
[GuidAttribute("A3C1C40C-9218-4D4C-9DAA-075F64F6922C")]
public interface SolutionBuild
[GuidAttribute(L"A3C1C40C-9218-4D4C-9DAA-075F64F6922C")]
public interface class SolutionBuild
[<GuidAttribute("A3C1C40C-9218-4D4C-9DAA-075F64F6922C")>]
type SolutionBuild =  interface end
public interface SolutionBuild

The SolutionBuild type exposes the following members.

Properties

  Name Description
Public property ActiveConfiguration Gets the currently active SolutionConfiguration object.
Public property BuildDependencies Gets a BuildDependencies collection that allows you to specify which projects depend on which other projects.
Public property BuildState Gets whether a build has ever been started in the current environment session, whether a build is currently in progress, or whether a build has been completed.
Public property DTE Gets the top-level extensibility object.
Public property LastBuildInfo Gets the number of projects that failed to build.
Public property Parent Gets the immediate parent object of a SolutionBuild object.
Public property SolutionConfigurations Gets a collection of SolutionConfiguration object.
Public property StartupProjects Gets or sets the names of projects that are entry points for the application.

Top

Methods

  Name Description
Public method Build Causes the active solution configuration to begin building.
Public method BuildProject Builds the specified project and its dependencies in the context of the specified solution configuration.
Public method Clean Deletes all compiler-generated support files for marked projects.
Public method Debug Starts debugging the solution.
Public method Deploy Causes each project in the active solution configuration that is marked for deployment to deploy.
Public method Run Causes the active solution configuration to execute.

Top

Remarks

The SolutionBuild object provides access to all of the solution configurations and their properties, the project build dependencies, and startup projects.

The counterpart to the SolutionBuild object at the project and item level is the ConfigurationManager object.

Examples

Sub SolutionBuildExample()
  ' Build the solution configuration.
  Dim sb As SolutionBuild = DTE.Solution.SolutionBuild
  sb.SolutionConfigurations.Item("MyConfig").Activate
  sb.Build
End Sub

See Also

Reference

EnvDTE Namespace