
24
|
Chapter 1, Master Projects and Solutions
#4 Hack the Project and Solution Files
HACK
Visual Studio 2005 includes an additional section that is not present in any
of the older versions of Visual Studio; it’s shown here:
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
If the FALSE is switched to TRUE, then the solution node is hidden in the
IDE.
Project Files
Each project creates a number of files to store information about itself. This
includes a project file and a user settings file. The extension for the project
file is based on the language type; for example, a C# Project is saved with
the extension .csproj and a VB.NET Project is stored with the extension .
vbproj. Thankfully, the internal formats of these various files are based on
the same XML schema. The beginning of each project file includes some
basic information about the project, including the version of Visual Studio
that it was created for as well as the GUID for this project. Here is an exam-
ple of this section:
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{89EE0E8E-C5C6-4772-A5EE-D347E40FB0E4}"
>
This is from a Visual Studio .NET 2003 project file, which is why the
ProductVersion is set to 7.1 and the SchemaVersion is set to 2.0. In Visual Stu-
dio .NET 2002, the
ProductVersion would be 7.0 and the SchemaVersion
would ...