TWT
TWT

Reputation: 2591

Roslyn - Use VisualStudioWorkspace in Visual Studio 2010

Is it possible somehow to use the VisualStudioWorkspace service, in an VsExtension that targets Visual Studio version 2010?(http://source.roslyn.codeplex.com/#Microsoft.VisualStudio.LanguageServices/Implementation/ProjectSystem/VisualStudioWorkspace.cs,e757fe6b8e91e765)

I tried to import the service using MEF, as described at https://joshvarty.wordpress.com/2014/09/12/learn-roslyn-now-part-6-working-with-workspaces/, but that's not working at all.

[Import(typeof(Microsoft.VisualStudio.LanguageServices.VisualStudioWorkspace))] 
public VisualStudioWorkspace myWorkspace { get; set; } 

Upvotes: 1

Views: 146

Answers (1)

Kevin Pilch
Kevin Pilch

Reputation: 11615

No. VisualStudioWorkspace only exists in VS2015 and newer.

Upvotes: 5

Related Questions