Skip to Main Content
Visual Studio Hacks
book

Visual Studio Hacks

by James Avery
March 2005
Intermediate to advanced content levelIntermediate to advanced
304 pages
19h 23m
English
O'Reilly Media, Inc.
Content preview from Visual Studio Hacks
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Visual Studio 2015 Unleashed, Third Edition

Microsoft Visual Studio 2015 Unleashed, Third Edition

Mike Snell, Lars Powers
.Net Framework Essentials

.Net Framework Essentials

Thuan L. Thai, Hoang Lam
C# 5.0 Unleashed

C# 5.0 Unleashed

Bart De Smet
Programming .NET Security

Programming .NET Security

Adam Freeman, Allen Jones

Publisher Resources

ISBN: 0596008473Errata Page