Solution3::AddFromFile Method (String^, Boolean)

 

Adds a project to the solution that is based on a project file already stored in the system.

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

Project^ AddFromFile(
	String^ FileName,
	bool Exclusive = false
)

Parameters

FileName
Type: System::String^

Required. The full path and file name of the project file.

Exclusive
Type: System::Boolean

Optional. Indicates whether the project loads in the current solution or its own solution; true if the current solution is closed and the project is added to a new solution, false if the project is added to the existing, open solution.

Return Value

Type: EnvDTE::Project^

A Project object.

You can use the LaunchWizard method rather than AddFromFile to execute a wizard if you want to suppress its user interface (UI) during execution. LaunchWizard has a parameter that allows you to disable the UI.

No code example is currently available or this language may not be supported.
Return to top
Show: