SolutionBuild2::BuildState Property
Visual Studio 2015
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.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Property Value
Type: EnvDTE::vsBuildStateA vsBuildState value representing the status of the build operation.
Implements
SolutionBuild::BuildStateBuildState 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.
Show: