Creating Your First VSS Project
To learn how to use VSS and to become familiar with the menu options available to you in Visual Studio .NET for VSS, you must create a new Windows Forms application. You can name the project whatever you want, and the language doesn't matter because no code is written today.When you create a new solution, you must create a new VSS project to manage it. There are two ways to get a new project under VSS control:
- Figure 20.3 demonstrates
- By selecting File, Source Control, Add Solution to Source Control
Figure 20.3. Adding a solution to VSS from the Solution Explorer.

When you select the Add Solution to Source Control option, you're prompted with the login dialog for SourceSafe. After you enter Admin as the username, you're taken to the Add to SourceSafe Project dialog box shown in Figure 20.4.
Figure 20.4. The Add to SourceSafe Project dialog box.

Note
In a multiuser environment, the SourceSafe administrator can set up the VSS server to use your network login information as the SourceSafe login information. When this is configured, you aren't prompted with the Login dialog each time you attempt to access a SourceSafe feature.The VSS database manages projects in a folder hierarchy similar to the file system. There's a root folder, which is defaulted to $/, and each project you add to source control will have a unique folder under the root. When you create a new project in SourceSafe, a GUID is created that identifies the project within the VSS database. Because of this, you'll have problems when copying projects or renaming projects because the GUID travels with the project. SourceSafe has no idea how to differentiate between different projects with the same GUID.In the Add to SourceSafe dialog, click the OK button to create the project in VSS with the default name of your solution. After the project is created, the files in your solution are created inside the VSS database and are checked in to SourceSafe. You know this because of the blue padlock icons that are attached to the files of your project in the Solution Explorer, as Figure 20.5 shows.Figure 20.5. Solution Explorer files under source control after creating a new VSS project.

To see what SourceSafe actually did, go back to the SourceSafe Explorer. You'll see your project under the root folder and the files of the project in the Contents pane of the Explorer. Your SourceSafe Explorer should resemble Figure 20.6.
Figure 20.6. The SourceSafe Explorer after creating a new project in Visual Studio .NET.

Now that you've created a file in SourceSafe, you can start to use the integrated features of Visual Studio .NET to manage your projects.