Sunday, May 07, 2006 12:55 PM
Is that a way to open TFS dialogs from code (VS2003)?
I would like to prompt the user the CheckIn/Checkout/Get dialogs from code
Tried DTE.ExecuteCommand("File.TfsCheckIn","") but it didnt work
The commands are available from VS2005
Sunday, May 07, 2006 8:05 PMModeratorNo, unfortunately all of our dialog classes are marked internal at the moment.
Monday, May 08, 2006 4:24 AM
Thanks, I saw that they are all Internals.
The thing is, We have some problems to adjusting the idea that when we check out a file it's not getting the latest version (TFS with vs2003). So we wanted to prompt the getlatest dialog when ever checking out and let the user to decide whether he wants to do get latest or not.
Is there another way like using the sdk ?
Monday, May 08, 2006 4:55 AMModeratorAt this point I don't have a better answer than creating a simple dialog of your own and performing the Get behind the scenes. I do hope we can expose more client pieces in the future.
Another option would be to write a VSIP plugin that adds a "Checkout & Get" option to the context menu.
Monday, May 08, 2006 7:05 AMIs there a way to use one of the commands in the sdk in a way that will prompt the dialogs ? like if we skip one of the parameters ?
Thursday, May 11, 2006 1:22 AMModerator
The following blog post describes what's available for extensibility in VS in v1.
Thursday, May 11, 2006 1:08 PM
I think Richard and Buck are focused on VS 2005 .
For VS 2003, the TFS integration is provided via a MSSCCI provider. Therefore, you should be able to use the same automation commands as you would with SourceSafe or any other MSSCCI provider. For instance, executing "File.Checkout" should bring up the ubiquitous MSSCCI CheckOut dialog and use the TFS MSSCCI provider to perform the actual check out operation.
We've had a numerous requests for the SourceSafe "GetLatest on Checkout" functionality in VS 2005. We are considering adding an option for this and will also consider this option for the next version of the TFS MSSCCI provider.
Thanks for your feedback,
Thursday, May 11, 2006 1:44 PM
This is what i've wanted.