Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / November 2006

Tip: Looking for answers? Try searching our database.

macro to connect to VSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Manny Silva - 06 Nov 2006 17:25 GMT
Hi,

  I am looking for a way to connect to VSS in a Visual Studio macro.  I am
relatively familiar with writing macros in VS2003.  I can get the solution
and enumerate the projects.  Visual studio is tracking those projects and
their items as source controlled objects.  It seems to me that there ought to
be a relatively simple way to query a project and get its related VSSItem
object.  If I could bridge that gap, I think everything else that I'm trying
to accomplish would be rather straight-forward, but currently I cannot figure
out how to do that.

Any pointers in the right direction would be greatly appreciated.  If there
is a better newsgroup for this question, please let me know.

Signature

Thanks in advance for your help,
Manny

Kevin Yu [MSFT] - 15 Nov 2006 03:36 GMT
Hi Manny,

You can use IVSSDatabase.VSSItem to get the VSSItem directly. For more
information, please check the following link:

http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.sourcesafe.i
nterop.ivssdatabase.vssitem(VS.80).aspx

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Manny Silva - 16 Nov 2006 16:08 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.