Sep 26 2008

Using SourceSafe in Visual Studio 2005 & 2008

Published by Kevin Gao at 2:39 pm under SourceSafe

This article is a part of SourceSafe / VSS Tutorial

Navigation Links:

  1. Choosing SourceSafe as the SCC Provider in Visual Studio
  2. Adding Solution into Source Control of SourceSafe
  3. Performing SourceSafe Operations in Visual Studio
  4. Changing Source Control Binding
  5. Pending Checkins Window
  6. Viewing Source Control Message

 

Visual SourceSafe can be integrated into Visual Studio to source control solution files, project files and application configuration files. Using SourceSafe in Visual Studio allows us to source control the code directly in the Visual Studio IDE. When we try to modify a file source controlled by SourceSafe in Visual Studio, it will check out the file automatically (If you use the default setting Check out automatically for Checked-in item behavior On Edit in menu Tools -> Options -> Source Control -> Environment). We can then check in the modifications into the VSS Database.

 

Choosing SourceSafe as the SCC Provider in Visual Studio

To use SourceSafe to source control your files in Visual Studio, you need to select SourceSafe as your source control provider first. You can do that through the Visual Studio menu Tools -> Options -> Source Control.

Choose Source Control Provider
(Choose Source Control Provider)

 

Adding Solution into Source Control of SourceSafe

The files must be added into Source Control of SourceSafe before you can perform SourceSafe operations on them. To add a solution or project into VSS DB, right-click a solution/project file in Solution Explorer and click Add Solution to Source Control. In the following dialog boxes, enter your credentials and select a location for your project.

 

Performing SourceSafe Operations in Visual Studio

Now if you right-click an item in Solution Explorer or click menu File -> Source Control, you will see some additional SourceSafe functions, such as Get, Check Out/In, Undo Check Out, Compare etc.

Access SourceSafe functions through right mouse button
(Access SourceSafe functions through right mouse button)

 

Access SourceSafe functions through File menu
(Access SourceSafe functions through File menu)

 

View History
To view the history information of an item, you can right-click the item and select View History. You can perform operations like Check Out, Get, Pin in the History Explorer.

History Explorer
(History Explorer)

 

Changing Source Control Binding

If the project structure in SourceSafe is changed, or the project is moved to a new VSS DB, you will need to change the source control binding of the solution. Go to menu File -> Source Control -> Change Source Control, perform Unbind to removes the solution/project from source control and then perform Bind to associate the solution/project with the recent server folder or database.

Change source control binding
(Change source control binding)

 

Pending Checkins Window

Visual Studio provides a Pending Checkins Window which allows you to see all of the checked out files in the current solution. You can select items to check-in in the Pending Checkins window. To open it, click menu View -> Pending Checkins.

 

Viewing Source Control Message

In cases when source control operations failed for some reason, you may be confused at the vague error message prompted by Visual Studio. In this situation, you may take a look at the Output Window of Visual Studio. If it is not already open, you can click menu View -> Output to open the window, choose to view the output message of Source Control and you can find more detailed information there.

 

SourceAnywhere - the SQL Server-based SourceSafe Replacement The SQL Server-based Source Control Software Designed to be a SourceSafe Replacement SourceAnywhere for VSS - the Fastest SourceSafe Remote Access Tool Recommended by Microsoft The Fastest SourceSafe Remote Access Tool Recommeded by Microsoft

Links:
Previous article <<<<:
Next article >>>>: Switching Visual Studio projects from SourceSafe to other SCC providers
SourceSafe How To series home page: VSS / SourceSafe Tutorial

11 responses so far

11 Responses to “Using SourceSafe in Visual Studio 2005 & 2008”

  1. Daveon 05 Dec 2008 at 4:10 am

    Very informative article. Thanks!

  2. Denison 09 Mar 2009 at 5:02 am

    I would like to associate all files ending with .sql to use Sql Management Studio from
    within Visual Studio 2008 Source Control Explorer. The files are not under a solution
    or project.

    There must be a way to say that my External Tool is Sql Management Studio and that
    all “.sql” must use this tool as their editor.
    From source Control Explorer I want to open a “.sql” file and have
    Sql Management Studio open/use that file.

    I have tried sql database edition with Visual Studio 2008 and prefer Sql Management Studio.

    Currently I still have sql server 2005 database and had a couple issue with Team Foundation
    Server MSSCCI Provider

  3. shrion 12 Mar 2009 at 2:56 pm

    Thanks Alot.
    it was Very helpful

  4. Xavieron 16 Apr 2009 at 12:15 am

    This is a great tutorial! Thanks!

  5. g hardyon 18 Aug 2009 at 5:59 am

    thanks! i would have never looked in the options with advanced.

    now, i can add my project to ss!

  6. Rohanon 10 Nov 2009 at 8:39 pm

    This is an awesome tutorial. It was really helpful. Thanks a lot!

  7. Serweron 12 Nov 2009 at 4:37 pm

    Nice quick tutorial. Thanks.

  8. comforton 25 Nov 2009 at 1:20 am

    awesome tut! Thanks!

  9. Yagneshon 07 Dec 2009 at 2:10 am

    Hay thanks for this post…..
    i was about to uninstall vs2008 and before i just found this help full things……
    Thank you very much

  10. visitoron 26 Jan 2010 at 3:09 pm

    Thank you!

  11. visitoron 29 Jan 2010 at 4:38 am

    Thank You

Trackback URI | Comments RSS

Leave a Reply

Version Control Software/System | Source Control Software/System | Software Configuration Management | SCM Hosting Solution | Bug Tracking System
SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting | SourceSafe (VSS) Remote/Web/Internet Access | Scanner COM
Customer Service Software | Live Chat | Live Help | Forum Software | Knowledge Base Software | Newsletter Email Marketing Software