Kevin,
I appreciate your response, but what I am actually looking for is a way
to get the VSSItem within a macro, given something within the dev studio
environment... that is... I have the DTE object, and from that I can get
the solution object... and from that I can enumerate the projects in the
solution... and the dev studio environment is obviously tracking the fact
that these projects are connected to source control... and so it stands to
reason that somehow there ought to be a way to query the solution object or
the project object and either get a VSSItem (which would be very nice) or at
least get enough information to open a VSS database and locate the project
that corresponds to the given project within the solution. Does this make
sense? I don't think that your response addresses this, or if it does, I am
somehow failing to make the connection. What I would like to be able to do
is enumerate through my solution, and if any projects in my solution are
connected to source safe, then I get hold of the source safe object that
corresponds to that project. To me it really seems that this ought to be
possible... am I just being a dreamer here?
Thanks again,
Manny
Kevin Yu [MSFT] - 17 Nov 2006 05:20 GMT
Hi Manny,
As far as I know, in IDE macro, we cannot get the VSSItem. Because the IDE
didn't provide an interface to get this. In this case, you have to parse
the .scc file in the same folder as the .sln file to get the project
information in VSS. Then use VSS automation to achieve this.
Kevin Yu
Microsoft Online Community Support
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Manny Silva - 21 Nov 2006 15:42 GMT
Thanks Kevin,
That sounds like the approach I need to take.
Manny