Visual Source Safe Integration

  • Thread starter Thread starter Guest
  • Start date Start date
i believe that source safe is a com object with a defined interface. I'm not
sure where i got that from though so it may not be correct, but it doesn't
hurt to check up on it.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Sam said:
Does anyone know if the .NET Framework defines a set of classes that allow
you to access Visual Source Safe within your C# programs.
I know there is some type of COM interface
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html
/vssauto.asp?frame=true) that allows programmers to access Visual Source
Safe from a VB or C++ app, however; I hoping to avoid accessing
non-managed code from my C# apps.
 
To the best of my knowledge there is no managed interface. IF VSS is like
VS.NET, the interfaces are all still unmanaged C++ and COM interfaces. I
don't if this will change as it is starting to for VS.NET.

--
--------------------------------------------------------------
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------
Sam said:
Does anyone know if the .NET Framework defines a set of classes that allow
you to access Visual Source Safe within your C# programs.
I know there is some type of COM interface
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html
/vssauto.asp?frame=true) that allows programmers to access Visual Source
Safe from a VB or C++ app, however; I hoping to avoid accessing
non-managed code from my C# apps.
 
Not exactly, but you can still interact with source control via VS.net:

VS.Net does define an API for interacting with VS.Net projects. If the
target project happens to be in source control, you seem to get the source
control interaction automatically.

Example:
I have a code generator that can create a lot of wrapper classes for
accessing tables in a database. The generator is a VS.Net plugin. When I
added project automation (so that it automatically adds the files that it
generates to the open project in VS.net), I found that I VS.Net
automatically handled some of the source control issues (like checking out
the project prior to adding the files, etc.

I expect that the interation that you get automatically will pretty much
follow the interaction that you get when you interact with a project or
files in the IDE. If you need more than that, VSS exposes that
funcationality via COM objects.


Sam said:
Does anyone know if the .NET Framework defines a set of classes that allow
you to access Visual Source Safe within your C# programs.
I know there is some type of COM interface
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html
/vssauto.asp?frame=true) that allows programmers to access Visual Source
Safe from a VB or C++ app, however; I hoping to avoid accessing
non-managed code from my C# apps.
 
Back
Top