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:
<identifier>.bin - file with images from resources.
<identifier>.res.xml - file with text resources.
The following files are saved when assemblies are added:
<identifier>.ref.xml - XML file containing the list of units and forms included into a given assembly.
The following files are saved when units are added:
<identifier>.ref.xml - XML file containing a list of links to system assemblies and repository assemblies.
<identifier>.text - text file containing unit code.
The following files are saved when forms are added:
<identifier>.form.xml - XML file containing form parameters (size, components layout and parameters).
<identifier>.ref.xml - XML file containing a list of links to system assemblies and repository assemblies.
<identifier>.text - text file containing form code.
On adding .NET assemblies following files are saved:
<identifier>.prop.xml - XML file containing assembly parameters and the list of connected assemblies.
On adding .NET units following files are saved:
<identifier>.prop.xml - XML file containing assembly parameters and the list of connected assemblies.
<identifier>.text - text file containing unit code.
On adding .NET forms following files are saved:
<identifier>.prop.xml - XML file containing assembly parameters and the list of connected assemblies
<identifier>.text - text file containing form code.
Also a folder containing files of form child objects is created:
Files of .NET form resources.
Files of the .NET module containing form designer code.
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:
<identifier>.params.xml - XML file containing settings of query parameters.
<identifier>.query.xml - XML file containing query text.
On adding view following files are saved:
<identifier>.params.xml - XML file containing settings of view parameters.
<identifier>.view.xml - XML file containing view text.
On adding procedure following files are saved:
<identifier>.params.xml - XML file containing settings of procedure parameters.
<identifier>.procedure.xml - XML file containing procedure text.
On adding DBMS command following files are saved:
<identifier>.params.xml - XML file containing settings of DBMS command parameters.
<identifier>.sql.xml - XML file containing DBMS command text.
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: