How to get currently running project from Visual Studio extension
<p>I am trying to create a VS extension and I need to know the currently executing project (for example, if someone is building a Xamarin.Android app and they have deployed it, I need the Xamarin.Android project).  Further, I need to know the output directory of that project (so I can get some binaries from it).  Can anyone help me with this?</p>

<p>I've tried using <a href="https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivssolution.aspx" rel="nofollow">IVsSolution</a>, and <a href="https://msdn.microsoft.com/en-us/library/envdte80.dte2.aspx" rel="nofollow">DTE2</a> (among other related things), but haven't found anything that tells me what is currently running.</p>

<p>Thanks</p>