Accessing VS complete solution in roslyn
In general, you can't. Analyzers run as part of commandline builds in csc and vbc, which have no notion of Workspaces or Solutions.
We are considering adding a VS specific analyzer API that would allow access to the Solution
, but for Roslyn's 1.0 release, there is no supported way to do so.