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.
• Table of Contents
• Index
Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days
By
Jason Beres
Publisher
: Sams Publishing
Pub Date
: January 14, 2003
ISBN
: 0-672-32421-0
Pages
: 696
Sams Teach Yourself Visual Studio .NET in 21 Days will help developers that are new to application development and experienced developers understand how to use the .NET Framework and Visual Studio .NET to rapidly develop any type of computer application. The Visual Studio .NET development environment is the most comprehensive developer tool ever created, putting that together with the .NET Frameworks' Class Libraries, the developer has everything he or she needs to get up-to-speed on Microsoft's latest revolution in application development. This book will guide the developer through using the VS .NET IDE, the Visual Basic .NET and C# language, and the supporting tools available from Microsoft to create Windows and Web-based applications. The market is full of books that pretty much say the same thing, which is already available in the help files, the author of this book has written and deployed over a dozen successful applications using Visual Studio .NET and the .NET Framework. All of his expertise and experience is used to give you the most comprehensive title on using Visual Studio .NET.