SolutionBuild2::BuildProject Method (String^, String^, Boolean)

 

Builds the specified project and its dependencies in the context of the specified solution configuration.

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

void BuildProject(
	String^ SolutionConfiguration,
	String^ ProjectUniqueName,
	bool WaitForBuildToFinish = false
)

Parameters

SolutionConfiguration
Type: System::String^

Required. The name of the new solution configuration that provides the context in which to build the project.

ProjectUniqueName
Type: System::String^

Required. The project to build.

WaitForBuildToFinish
Type: System::Boolean

Optional. Determines whether to wait for the build to complete. If true, then it waits, otherwise, it does not wait.

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. If you want 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.

BuildProject builds the specified project and all of its dependencies that are checked to be built in the specified solution configuration.

This example builds a project in debug mode. Open a project in the Visual Studio integrated development environment (IDE) before running this example.

No code example is currently available or this language may not be supported.
Return to top
Show: