C
Chris Dunaway
I am trying to call the Get method on the VSSItem object for a specific
file, but I keep getting an COMException that includes:
Additional information: This command only works on projects.
According to the docs:
"The Get method may be called against both file and project objects. When
called against a project, all files in the project are gotten regardless of
their CheckOut status."
Here's the code I am using. v is a VSSItem object that points at the SS
project I am working with. The exception occurs on the Get method:
For Each i In v.Items
If i.Type = VSSItemType.VSSITEM_FILE Then
i.Get(i.LocalSpec, VSSFlags.VSSFLAG_REPSKIP)
End If
Next
Does anyone have an example of code that can show me how to get the latest
version of a file, not a project? I do not want to check it out, just get
the latest version.
Thanks,
file, but I keep getting an COMException that includes:
Additional information: This command only works on projects.
According to the docs:
"The Get method may be called against both file and project objects. When
called against a project, all files in the project are gotten regardless of
their CheckOut status."
Here's the code I am using. v is a VSSItem object that points at the SS
project I am working with. The exception occurs on the Get method:
For Each i In v.Items
If i.Type = VSSItemType.VSSITEM_FILE Then
i.Get(i.LocalSpec, VSSFlags.VSSFLAG_REPSKIP)
End If
Next
Does anyone have an example of code that can show me how to get the latest
version of a file, not a project? I do not want to check it out, just get
the latest version.
Thanks,