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

How to access the selected document in Team Explorer

$
0
0

Hi,

I need to programmatically get the properties of the currently selected document in Team Explorer. I tried using IVsMonitorSelection as someone had suggested elsewhere but I didn't get back details on the selected item through that. I also learned about using ITrackSelection elsewhere but I'm not sure how to use that to get to the selected document. 

I also tried hitting the SelectedItems property on the application object but that turns out to be null every single time. I'm using Visual Studio 2012 connected to a TFS server 2012 as well.

I'm trying to do this within a VS addin (not a package). Has anyone faced this situation before? Any pointer will be greatly appreciated.

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>