Visual SourceSafe - Part One

This tutorial is the first part in a two part series on how to use Visual SourceSafe, a utility created by Microsoft, used for version control management. This first tutorial will cover the basics of VSS...what it is, how it can be used, and how to do the basic things with it.


Contents


Setup

There are a couple of prerequisites that I'm going to assume you have setup on your computer:

Back To Top

Visual SourceSafe Basics

What is VSS?

Why choose VSS?

Back To Top

Creating Users

Back To Top

Adding Projects

Back To Top

Deleting Projects

  • In this example (wow...a graphic! I'm going all out this time...), I deleted a test project which was located under the root ($/):

Back To Top

Managing Your Project From the VB IDE

  1. This is a regular SDI form. [Not Checked Out]
  2. This is an MDI-child form. [Checked Out]
  3. This is an MDI-child form. [Not Checked Out]
  4. This is an MDI-parent form. [Not Checked Out]
  5. This is a regular module. [Not Checked Out]
  6. This is a module that is shared between applications (see part two of the tutorials for more information on this). [Not Checked Out]
  7. This is a regular class module. [Not Checked Out]
  • Get Latest Version - This will retrieve the latest version of the file that you have selected. This is fairly important if you are working in a development team. If someone else changes the code for one of the files, you have to invoke this option to get the latest version of it. You don't need to do this, however, if you are checking it out... it's then automatically done for you.
  • Check Out - Fairly self explanatory. This checks the file out from the repository, and enables you to make changes to it. After clicking this, the icon in the Project Explorer should have a small red check beside it.
  • Check In - When you are done making your changes, you select this option to store the code back into the database. After clicking this, a dialog comes up asking you to enter a description for the change, and some other options. This is also where you can view the changes that you've made to the module (by clicking the Differences button on the dialog box).
  • Undo Check Out - This allows you to undo your checkout. If you've screwed up royally, and can't figure out what you've done by examining the Differences between versions, then you can always undo any changes you've done. By selecting this option, it basically reverts the file back to the previous version, and keeps no record that you ever had it checked out.

All of the options can be either 'Yes', 'No', or 'Ask':

  • Get latest checked... - This indicates if you want to get the latest version of the files when you open a project. It's a good idea to have this set to 'Yes', since you never have to do it manually then. One problem, is if you have a file checked out, and then open the VB project, it will prompt you if you want to replace the file you have checked out (which you probably don't want to do). To avoid this little pain, hit the Advanced button on this dialog, go to the Local Files tab, and set the Replace Writable Files option to 'Skip'.
  • Check in files... - This indicates if you want to automatically check your files in when you close the VB project. You probably want this to 'No'...this could be especially annoying when you are creating a new file for the project (see Tips and Tricks).

Back To Top

Managing Your Project From VSS Explorer

Back To Top

Adding/Deleting Files In a Project

Back To Top

Tips and Tricks

Back To Top


Please feel free to contact me with any comments or questions about this tutorial or the tools used.

Back To Tutorials

Previous Part - [1 2] - Next Part