Roslyn: How to get a reference to Workspace from currently loaded solution?

旧巷老猫 提交于 2019-12-01 09:22:23

As described by Dustin Campbell in his answer here: How to work with Workspace.PrimaryWorkspace.CurrentSolution inside VSPackage

The primary workspace inside of Visual Studio is only populated when the Roslyn C# and Visual Basic language services are enabled.

To enable the Roslyn languages services you need to start your VS with the following command:

devenv.exe /rootSuffix Roslyn
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!