Is this possible??

  • Thread starter Thread starter Angela
  • Start date Start date
A

Angela

I have been asked to write an application that will back
up certain VS .NET projects to Visual Source Safe. The
developer would select projects and click a button and the
application is supposed to just back them up to VSS.

Can this be done? I've been searching on Google and maybe
I'm typing in the wrong search string, but I can't find
anything on this.
 
Sure this is possible? You can "talk" to VSS through a COM component. If you
need source code, I would advice you to check out this open source project:
http://hipponet.sourceforge.net

It connects to VSS to get the latest version and start a build process. If
you have any questions about the source code, please ask me.
 
Hello Angela,

Thanks for your post. As I understand, you want to add VS .NET projects to
Visual SourceSafe programmatically. Though I do not know the exact
interfact of your program, I'd like to share the following information with
you:

1. If the project is opened in VS .NET IDE, you can select the menu "File"
-> "Source Control" -> "Add Project from Source Control" to achieve it.

2. If you are given a project file (say, .csproj file), you may need to
open the project file, get a list of files in the project, and use either
VSS command line or VSS automation to create a folder and add files to it
in VSS. Please refer to the following MSDN documentation for detailed
information:

Visual SourceSafe: Use Command Line Commands and Options
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guides/html
/vstskuse_command_line_commands_and_options.asp

Visual SourceSafe 6.0 Automation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/
vssauto.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
thank you for your response.

What I have been asked to do is create an application that
will allow a developer to select (from a list) a solution
to build, then the newly built solution should be "backed
up" in VSS, meaning they want it to check out the solution
in VSS, apply a version label to it and then check it back
in. THey would like all of this to be done by clicking a
button in this application.

Is this possible?? I have found a way to check files out,
but I haven't found a way to apply a version label or
check files in.
 
Hello Angela,

Thanks for your response. Please take a look at Label and Checkin options:

Visual SourceSafe: Label (Command Line)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guides/html
/vsgrfss_label.asp

Visual SourceSafe: Checkin (Command Line)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guides/html
/vsgrfss_update.asp

BTW, in the future, it would be best to post VSS questions in the following
newsgroup:
microsoft.public.vsnet.vss

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top