SolutionBuild2::BuildState Property

 

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.

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

property vsBuildState BuildState {
	vsBuildState get();
}

Property Value

Type: EnvDTE::vsBuildState

A vsBuildState value representing the status of the build operation.

BuildState has vsBuildStateNotStarted so that you can detect a race condition, a process that starts the environment to do a build and then checks its build state before the build has actually begun. Checking to see if vsBuildState equals vsBuildStateNotStarted allows you to avoid this situation. It also allows you to determine whether the value of the LastBuildInfo property is valid.

This example determines the build state for each active startup configuration. 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: