Get current visual studio instance (EnvDTE) in C#
<p>How can I get the current instance (EnvDTE) of visual studio in C #?</p>

<p>if you have multiple processes visual studio with the following line of code I get the object EnvDTE80.DTE2:</p>

<p>EnvDTE80.DTE2 dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.11.0");</p>

<p>At this point how can I get the current solution?</p>
