Adding Objects to Version Control System

To add objects to version control system, select required object in the project navigator tree and click the button or select the Add to Version Control System item in the object 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 on the server and on 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.

Please bear in mind 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:

On adding .NET assemblies following files are saved:

On adding .NET units following files are saved:

On adding .NET forms 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.

On adding query following files are saved:

On adding view following files are saved:

On adding procedure following files are saved:

On adding DBMS command following files are saved:

An object is added to the 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 the version control system, other users may get access to it in read-only mode. An appropriate message appears on attempt to edit such an object. To work with such objects, all users must have the repository set up to use the same branch on the version control server.

See also:

Developing Application in a Team