Vault and CheckOutItem() Method

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
thecramgroup
Posts: 11
Joined: Wed Oct 20, 2004 1:24 pm

Vault and CheckOutItem() Method

Post by thecramgroup » Wed Oct 20, 2004 1:36 pm

Hi all,

I'm writing an add-in for Visual Studio .NET 2003 that needs to check out a file, modify it and if possible, check it back in. However, when I try to call EnvDTE.SourceControl.CheckOutItem(), nothing happens. The file remains checked in. I'm not sure if this is a problem with my code or maybe I can't use EnvDTE.SourceControl methods with Vault.

Please advise.

foreach (EnvDTE.ProjectItem prjItem in project.ProjectItems)
{
if (prjItem.Name == "AssemblyInfo.cs")
{
prjItem.Open("{00000000-0000-0000-0000-000000000000}");

string fileName = prjItem.Document.FullName;
applicationObject.SourceControl.CheckOutItem(fileName);

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Oct 20, 2004 2:42 pm

Not sure what is going on there - we've not worked with nor supported the envDTE API. Does it work with VSS?

If I remember right, there were issues with the VS 2003 source control APIs that prevented them from working correctly for any vendor (if that is the same API I am remembering), which is why we needed to revert back to using MSCCI.

Locked