As far as I understand, Roslyn have introduced the concept of Workspaces. One implementation of Workspaces is the MsBuildWorkspace.
My question is, can I from within a custom build task access a Roslyn Workspace representing the project being built?
I suspect that this is the purpose of MsBuildWorkspace. If so, can I access this workspace from the Execute
method in my custom task (derived from Microsoft.Build.Utilities.Task
)?
In case you are wondering why, I need to traverse other aspects of the project being built. It is not enough for me to have access to the specific input file of the task to generate the output.