Open sandboxFocus

Method Load

Load(params string[])

Loads a set of projects of solutions into a Workspace, or returns an existing workspace if the method has been previously called with the exact same parameters. This method creates the workspace in the default WorkspaceCollection.

Declaration
[Obsolete("Use WorkspaceCollection.Default.Load() instead.")]
public static Workspace Load(params string[] paths)
Parameters
Type Name Description
string[] paths

A list of project or solution paths.

Returns
Type Description
Workspace

A Workspace where all specified project or solutions, and their dependencies, have been loaded.

Remarks

Use Default.Load(params string[]) instead. To configure services such as metrics, call WithServices(Action<ServiceBuilder>) before loading.