Logging into VSS through C#

V

Vaibhav

Hi...

Can anyone plz tell how can i login through C#.net application into Vss and
extract files from ths VSS database.
 
M

Misbah Arefin

To connect to a vss db, you may use the following code (add ref to
Microsoft.VisualStudio.SourceSafe.Interop assembly):

Microsoft.VisualStudio.SourceSafe.Interop.VSSDatabaseClass s = new
VSSDatabaseClass();
try
{
s.Open(@"C:\SomeSourceSafeProjects\srcsafe.ini", "Admin", "");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top