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);
Vault and CheckOutItem() Method
Moderator: SourceGear
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.
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.