Configure VSS (Source Code Manager)

Source: Internet
Author: User
Tags naming convention
Configure VSS

Source code management service configuration steps:

1. Install the source code management provider.

2. Create a source code management database.

3. Configure the source code management server.

4. Set options for each source code management client computer.

Getting started
You must complete the following tasks before you can use the integrated source code management function in IDE and complete the drill:

Install valid source code management providers such as Visual sourcesafe (VSS) on two computers (one "server" and one "client ). The source code management client is a computer in a network that can access Shared items in the source code management database and store copies of items in a local working folder. The source code management server is also a computer on the network. It provides shared items to clients from the source code management database.

In this and subsequent drills, we call these computers scsrv_client1 and scclient2. Both Computers are source code management clients. However, scsrv_client1 will also host the source code management server.

Create a source code management database in the shared network folder.

Although the source code management service is integrated in Visual Studio. net ide, you must install the providers that comply with the Microsoft Source code control interface (msscci) before using these services. After a valid provider is installed and the computer is restarted, the solution, project, and files can be placed under source code management. The provider creates a registry key during installation. Each time IDE is opened, Visual Studio knows the existence and location of the provider.Warning

We recommend that you do not use Visual Studio. NET and independent source code management providers to manage the same project or solution. By doing so, you may be unable to access the solution and project from source code management. Visual sourcesafe (VSS) 6.0c is a source code management provider that complies with msscci and is available with Visual Studio. NET Enterprise Development edition. In this walkthrough and subsequent rehearsals, it is assumed that you have installed VSS. To use Visual Studio to integrate the source code management service, you must install VSS or backup providers on each source code management client. Install visual sourcesafe 6.C as the msscci provider and run setup.exe from the root directory of visual sourcesafe 6.C installation CD.

After installing the source code management provider, the next step is to create a source code management database to store the server version of the shared files of your group.
Create a source code management database. The following procedure assumes that you are an administrator and Set visual sourcesafe to the msscci provider on the network, and you want at least one client to access the provider. If you are using other source code management programs, see the provider documentation.Create a shared network folder for the source code management database

On the Source Code Management Server (scsrv_client1), open windows Resource Manager and create a folder named Tracker.

Right-click "tracker" and click "properties ".

In the "tracker properties" dialog box, click the "share" tab, and then click "share this folder ".

Now you can create a source code management database in the shared tracker. Complete the following steps on the source code management server (scsrv_client1.

  Create source code management database

Click Start, point to program, point to Microsoft Visual sourcesafe, and click visual sourcesafe 6.0 admin ".

In the Tools menu of the visual sourcesafe administrator dialog box, click Create Database ".

In the "Create new VSS database in" box, type the "unified Naming Convention" (UNC) path shared by the network (for example, // scsrv_client1/tracker, where scsrv_client1 is the name of the computer, tracker is the name of the new database and network share ).

The source code management database of Visual Studio. NET has been set successfully.

The next step is to configure the source code management server and client. Configure the source code management server. This topic requires two computers. Scsrv_client1 is the source code management server and client. Scclient2 is the source code management client. Server settings are configured in the administrator program of the source code management provider. In visual sourcesafe, use the Options dialog box in the visual sourcesafe administrator window. You can set a shared check-out so that two or more users can check out and edit the same file at the same time. Only one server setting is changed, that is, the check-out mode. By default, visual sourcesafe is configured to be checked out exclusively, that is, only one user can edit the server version of one file at a time. However, for a group development environment (such as the simulated environment for these drills), we recommend that you use the shared checkout mode.
Set the shared check-out mode from the source code management server folder. On the scsrv_client1 computer, click Start, point to program, point to Microsoft Visual sourcesafe, and then click visual sourcesafe 6.0 admin ".

Click Users, click Open sourcesafe database, and then click browse ".

In the "Find Database" dialog box, open the folder for creating the tracker database, select the "srcsafe. ini" file, and click "open ".

Tracker is added to the database list in the "open sourcesafe Database" dialog box.

In the "open sourcesafe Database" dialog box, select "tracker" and click "open ".

In the Tools menu of the visual sourcesafe administrator dialog box, click options ".

On the General tab, select "allow multiple checkouts" and click "OK ".

Now, when using items managed by source code in the tracker database, you can execute shared check-out. If you have multiple source code management databases, you must set this option for each database. For more information, see Walkthrough: Share items managed by source code.

Set Source code management client options for each client computer connected to the source code management server of the group should be set up in a unified manner. Client settings are made in the Options dialog box of Visual Studio. NET, or from the Client installation of the source code management provider. Visual sourcesafe users can access all the settings required for this walkthrough from the IDE. The source code management walkthrough assumes that you have configured two computers (in this walkthrough, scsrv_client1 is both a server and a client). The settings used are as follows: Visual sourcesafe

Optional configuration files, automatically set the most suitable source code management options for you and your group's work methods. For more information about changing the configuration file, see setting source code management options.

File Sharing

Web Access Method

If your team wants to develop Web applications, the source code management settings should be considered as Web access methods. For Visual Studio. NET development, we recommend that you use the file sharing access method (which is also the default setting ). With this method, each developer in the group uses a local copy of the source code management project, check in and out the changes to the "server version" (sometimes called the master copy) of the file managed by source code ).

The "FrontPage Server Extension" access method is a backup method, which is more difficult to use. This method is not recommended for multi-user development environments. For more information, see Add a front page web application to source code management. For more information about the two methods, see Web access methods.

Specify a web access method for the Client Computer

In the "Tools" menu of Visual Studio. net ide, click "options", select the "project" folder, and click "Web Settings ".

Under "preferred access method", select "file sharing ".
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.