Compartilhar via


IProjectConfigurationService.SetStartupProject Method

Definition

Add or Remove a Startup project File

public:
 System::Threading::Tasks::Task ^ SetStartupProject(Microsoft::VisualStudio::Workspace::ProjectTargetFileContext ^ projectFileContext, bool add);
public System.Threading.Tasks.Task SetStartupProject (Microsoft.VisualStudio.Workspace.ProjectTargetFileContext projectFileContext, bool add);
abstract member SetStartupProject : Microsoft.VisualStudio.Workspace.ProjectTargetFileContext * bool -> System.Threading.Tasks.Task
Public Function SetStartupProject (projectFileContext As ProjectTargetFileContext, add As Boolean) As Task

Parameters

projectFileContext
ProjectTargetFileContext

The project file context

add
Boolean

if add or remove is desired

Returns

Task to monitor completion

Applies to