SolutionBuild.BuildProject Method
Builds the specified project and its dependencies in the context of the specified solution configuration.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub BuildProject ( _
SolutionConfiguration As String, _
ProjectUniqueName As String, _
WaitForBuildToFinish As Boolean _
)
void BuildProject(
string SolutionConfiguration,
string ProjectUniqueName,
bool WaitForBuildToFinish
)
void BuildProject(
String^ SolutionConfiguration,
String^ ProjectUniqueName,
bool WaitForBuildToFinish
)
abstract BuildProject :
SolutionConfiguration:string *
ProjectUniqueName:string *
WaitForBuildToFinish:bool -> unit
function BuildProject(
SolutionConfiguration : String,
ProjectUniqueName : String,
WaitForBuildToFinish : boolean
)
Parameters
SolutionConfiguration
Type: System.StringRequired. The name of the new solution configuration that provides the context in which to build the project.
ProjectUniqueName
Type: System.StringRequired. The project to build.
WaitForBuildToFinish
Type: System.BooleanOptional. Determines whether to wait for the build to complete. If true, then waits, otherwise, no.
Remarks
BuildProject returns immediately. To determine when a solution build operation is complete, you must check the OnBuildDone event.
BuildProject does not affect the user interface (UI) in terms of changing the active solution configuration or selected project. To build the project relative to the active solution configuration, use DTE.SolutionBuild.ActiveConfiguration.Name.
BuildProject does affect the UI based on the DTE.SuppressUI flag in that the Status Bar flickers and the Output window and Task List are always updated.
The specified project and all its dependencies are built as long as the dependencies are checked to be built in the specified solution configuration.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.