I\'ve been using so far this part of code to get my solution variable (using Rosyln)
var workspace=MSBuildWorkspace.Create(); var solution = workspace.OpenSolutio