I am writing a vs2012 extension that will talk to TFS 2010 (though I would prefer if it could also work with tfs2012).
I need to invoke a compare operations on a file from the extension.
I want to use the default compare tool that is configured in visual studio at the moment of the innovation (because the user can configure a different compare tool).
I have the location of the file and I want to be able to invoke the following:
- open the default compare.
- open a compare with latest version
- open a compare with workspace version
Use
IVsDifferenceServiceto invoke Visual Studio diff tool from your VSPackage:To test it you need to set the workspace and download the file you want to compare:
References: