IVsSolution6::AddExistingProject Method (String^, IVsHierarchy^, IVsHierarchy^)

 

Adds an existing project to the solution.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime (in Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime.dll)

int AddExistingProject(
	String^ szFullPath,
	IVsHierarchy^ pParent,
	[OutAttribute] IVsHierarchy^% ppNewProj
)

Parameters

szFullPath
Type: System::String^

The full path of the project.

pParent
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[optional] The parent IVsHierarchy element under which to create the new project. This can be the solution folder or any project that implements IVsParentProject3.

ppNewProj
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[out] The new IVsHierarchy element.

Return Value

Type: System::Int32

The HRESULT.

Return to top
Show: