Adding New Project Items or Projects
When working with projects in VSS, you're actually checking out only individual files, not the Visual Studio project file or the Visual Studio solution file. That means any time you add a new item to your projects or you rename an item in your project, you must check out the project file in the solution.Adding an item is a straightforward task. When you add an item, the project file must be updated with the information about the new file. Because a project file in Visual Studio tracks each item in a project, the VSS database must be notified of your changes. After the normal Add Item dialog pops up and you select the type of item you're adding and give it a name, the Check Out For Edit dialog for the project pops up, as Figure 20.16 demonstrates.
Figure 20.16. Checking out the project file when adding new items.

At this point, the new item is added and the project file is updated. The problem is that the project file must be checked back in to VSS or no one can check it out to get your new changes. Therefore, as soon as you can, you must check the project file back into VSS so that other developers can access it. Because the default for a new item is checked in, when someone else grabs the latest version of the project, he'll see your newly added file.If you add a new project to a solution, the solution file is checked out and you're prompted with a warning similar to Figure 20.17.
Figure 20.17. Warning dialog box when adding a new project to a solution.

Because both Visual Studio .NET and VSS maintain a hierarchy of the project and files in your solutions, the VSS database must associate a newly added project with the correct solution when adding a new project. That means you must create a new project folder underneath the existing root of the project in VSS. To get an idea of how this works logically, the Check In dialog shown in Figure 20.18 shows the hierarchy after adding a new project to a solution.
Figure 20.18. Solution hierarchy after adding a new project to a solution.

You can see that when VSS checks files back in, they're logically listed as File Below ProjectX or Items Below SolutionX. When you click the OK button on the Check In dialog after adding a new project to a solution, you're prompted to give the new project names in VSS. You can use the same project names that you use in the solution, and the correct hierarchy is maintained for others who attempt to access this solution.