Summary
Gets a Roslyn workspace for the analyzed results.
Syntax
public static AdhocWorkspace GetWorkspace(this AnalyzerResult analyzerResult, bool addProjectReferences = false)
Parameters
| Name |
Type |
Description |
| analyzerResult |
AnalyzerResult |
The results from building a Buildalyzer project analyzer. |
| addProjectReferences |
bool |
true to add projects to the workspace for project references that exist in the same AnalyzerManager.
If true this will trigger (re)building all referenced projects. Directly add AnalyzerResult instances instead if you already have them available.
|
Return Value
| Type |
Description |
| AdhocWorkspace |
A Roslyn workspace. |