IVsSolutionBuildManager::get_StartupProject Method (IVsHierarchy^)
Programmatic method to get the startup project that will be run when the F5 key is pressed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- ppHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[out] Pointer to a pointer to a hierarchy object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolutionBuildManager::get_StartupProject( [out] IVsHierarchy **ppHierarchy );
The environment usually uses the settings in the Solution Configuration property pages for the startup project or projects started when DebugLaunch is called. You can programmatically get and set the startup project using get_StartupProject and set_StartupProject.
Note |
|---|
get_StartupProject and set_StartupProject have the ability to set only a single startup project. If you want to set multiple startup projects, you should use the Solution Configuration property pages or go through the automation model, specifically, DTE.Solution.SolutionBuild.StartupProjects. For more information, see Contributing to the Automation Model. |
