Summary
Adds a result to an existing Roslyn workspace.
Syntax
public static Project AddToWorkspace(this AnalyzerResult analyzerResult, Workspace workspace, bool addProjectReferences = false)
Parameters
Name |
Type |
Description |
analyzerResult |
AnalyzerResult |
The results from building a Buildalyzer project analyzer. |
workspace |
Workspace |
A Roslyn workspace. |
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 |
Project |
The newly added Roslyn project. |