Is there a way to detect whether or not there is an opened solution in VS 2012 from a vsix extension?

ⅰ亾dé卋堺 提交于 2019-12-11 02:37:46

问题


I would like to disable parts of my extension's tool window if it is opened without a solution loaded, and need a way to detect this.

I know about the DTE events that are fired when a solution is opened/closed, is there perhaps a similar event for when the IDE itself has finished loading?


回答1:


I found my answer while writing the question, but I thought I may as well still submit in case anyone else is looking for this in future with similar search terms to me.

EnvDTE.Solution.IsOpen



来源:https://stackoverflow.com/questions/15685715/is-there-a-way-to-detect-whether-or-not-there-is-an-opened-solution-in-vs-2012-f

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