This documentation is archived and is not being maintained.

Open Solution Command

Opens an existing solution, closing any other open solutions.

File.OpenSolution filename

Arguments

Filename
Required. The full path and file name of the solution to open.

The syntax for the filename argument requires that paths containing spaces use quotation marks.

Remarks

Auto completion tries to locate the correct path and file name as you type.

Example

This example opens the solution, Test1.sln.

>File.OpenSolution "c:\MySolutions\Test1\Test1.sln"

See Also

Visual Studio Commands with Arguments | Command Window | Find/Command Box | Pre-defined Visual Studio Command Aliases

Show: