Adding Objects to Version Control System

To add objects to version control system, select the required object in the project navigator tree and click the button or select the Add to Version Control System item in the object's context menu. A standard dialog box for adding files to version control system opens:

Depending on the selected object, different collection of files containing the object data is stored at the server and on the local computer. The file names are generated as follows: <object identifier>.<extension>.

NOTE. Team Foundation Server limits length of server version control system path. Server version control system path is the full path to a file stored in the version control system. The following restrictions affect this path:

- maximum 248 Unicode characters for a directory name.

- maximum 260 Unicode characters for both directory name and file name.

Take into account this restriction when adding objects to version control system.

When resources are added, the following files are saved:

The following files are saved when assemblies are added:

The following files are saved when units are added:

The following files are saved when forms are added:

When .NET assemblies are added, the following files are saved:

When .NET units are added, the following files are saved:

When .NET forms are added, the following files are saved:

NOTE. When a .NET object is added to version control system, also the parent .NET assembly and all its contents are automatically added.

When queries are added, the following files are saved:

When a view is added, the following files are saved:

When a procedure is added, the following files are saved:

When a DBMS command is added, the following files are saved:

An object is added to version control system after clicking the Check In button, and object shortcut in the project navigator looks as follows: .

NOTE. After the object is added to version control system, other users may get access to it in the read-only mode. An appropriate message is displayed on an attempt to edit such an object. To work with such objects, all users must have the repository set up to use the same branch at the version control server.

See also:

Developing Application in a Team