LoadAsync(params string[])
Asynchronously 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.LoadAsync() instead.")]
public static Task<Workspace> LoadAsync(params string[] paths)Parameters
| Type | Name | Description |
|---|---|---|
| string[] | paths | A list of project or solution paths. |
Returns
| Type | Description |
|---|---|
| Task<Workspace> | A Workspace where all specified project or solutions, and their dependencies, have been loaded. |
Remarks
Use Default.LoadAsync(params string[]) instead. To configure services such as metrics, call WithServices(Action<ServiceBuilder>) before loading.