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!