From a Visual Studio 2015 CTP5 package, how do I get the current Roslyn workspace?
I looked at
How to get reference to 'Roslyn' Workspace object from IVsSolution?
and
Roslyn: How to get a reference to Workspace from currently loaded solution?
but I still can't make it work:
Workspace.CurrentWorkspace does not exist anymore
I have tried importing the VisualStudioWorkspace but it is still null:
public sealed class VSPackage1Package : Package
{
....
[Import]
public VisualStudioWorkspace Workspace { get; set; }
....
protected override void Initialize()
{
// Workspace is null here...
Is there a sample somewhere?