Adding Files (.NET only)

When you add a new file to your Visual Studio project, it is not automatically placed under version control. Use the Add Files command to add files into StarTeam. This process also logs the comment you type for the addition, as well as setting some version control properties, such as lock status and revision label.
Tip: You can also right click on the root project node in the Solution Explorer, and choose StarTeam > Commit Project to add any new (or modified) source items in the Visual Studio project to StarTeam in a single operation.
  1. Select the file or files in the solution explorer that you wish to add to the project. A Not In View icon displays to the left of the filename indicating that the file is not in the current view.
  2. Right-click on the filename in the Solution Explorer and choose StarTeam > Add. This opens the Add Files dialog box.
  3. Click the File List tab and complete the following optional fields:
    • Type a description for the file in the Summary Comment field. Depending upon whether the StarTeam project requires you to type a comment, this step may be optional for you.
    • Choose an item shortcut or active process item from the list at the far right of the dialog box and associate it with one or many of the files that you are adding to StarTeam. Items available from the list include shortcuts to change requests, requirements, and tasks and the active process item.
    • Uncheck any check boxes as desired from the File List at the bottom of the dialog box.
  4. Click the Options tab at the bottom of the dialog box to specify any of the following optional settings:
    • Select an appropriate lock status for the files. The lock status lets other team members know whether or not you are working on the files.
    • Check Link And Pin Process Item to link the new files to process items. This is required if process rules are enforced.
    • Check Mark Selected Process Item As Fixed/Finished/Complete if work on the active process item is finalized.
    • Select a Revision Label from the list, or create a new revision label by typing the label name. Existing labels are listed in the reverse chronological order, based on the time at which they were created.
    Note: Click Advanced on the Options tab to perform an EOL conversion (based on the EOL settings in the Personal Options dialog box) or to select a file encoding.
  5. Click OK.
The project source files are checked into the StarTeam repository. The status of the StarTeam operation displays in the Output window. When you add new files to the project, the status for these files changes from Not In View to Current, unless you check Delete Working Files during check in. In that case, their status is changed to Missing.