I am developing an extension to Visual Studio 2015. How do I get workspace object for the current solution loaded in the IDE so that my extension can work on it?
A lot of samples seem to load a project or a solution as below, however, I want to get the workspace of the Solution loaded in the IDE so that my extension can access to it.
Dim workspace = New AdhocWorkspace()
Dim solution = workspace.CurrentSolution
Dim project = solution.AddProject("projectName", "assemblyName", LanguageNames.VisualBasic)
Dim document = project.AddDocument("name.vb", "...some code")