http://social.msdn.microsoft.com/Forums/en/vsx/thread/2f147cbd-4abe-464b-a665-6a166560f5c2
EnvDTE.DTE applicationObject = (EnvDTE.DTE)
(this.GetService(typeof(Microsoft.VisualStudio.Shell.Interop.SDTE)));
http://social.msdn.microsoft.com/Forums/en/vsx/thread/2f147cbd-4abe-464b-a665-6a166560f5c2
EnvDTE.DTE applicationObject = (EnvDTE.DTE)
(this.GetService(typeof(Microsoft.VisualStudio.Shell.Interop.SDTE)));
转载于:https://www.cnblogs.com/georgechen-ena/archive/2012/04/27/2473659.html