Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to get programatically current selection in Team Explorer window VS2012?

$
0
0

Hello all,

I need to get the current selected (query) item in Team Explorer Window, VS2012.

I used to have this code working in VS2010 - see below - but since the IVsTeamExplorer interface is being deprecated in 2012, I can no longer use it:

IVsTeamExplorer teamExplorer = this.GetService(typeof(IVsTeamExplorer)) as IVsTeamExplorer;

                teamExplorer.TeamExplorerWindow.GetCurrentSelection(out hier, out itemid, out dummy);

Does anyone familiar with getting the info in VS2012?

Many Thanks!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>