问题
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