Roslyn - 在Visual Studio 2010中使用VisualStudioWorkspace

TWT*_*TWT 1 c# visual-studio roslyn roslyn-code-analysis

是否有可能以某种方式在面向Visual Studio版本2010的VsExtension中使用VisualStudioWorkspace服务?(http://source.roslyn.codeplex.com/#Microsoft.VisualStudio.LanguageServices/Implementation/ProjectSystem/VisualStudioWorkspace.cs,e757fe6b8e91e765)

我尝试使用MEF导入服务,如https://joshvarty.wordpress.com/2014/09/12/learn-roslyn-now-part-6-working-with-workspaces/所述,但这不适用于所有.

[Import(typeof(Microsoft.VisualStudio.LanguageServices.VisualStudioWorkspace))] 
public VisualStudioWorkspace myWorkspace { get; set; } 
Run Code Online (Sandbox Code Playgroud)

Kev*_*lch 5

不可以.VisualStudioWorkspace仅存在于VS2015及更高版本中.