Chapter 5: Creating and Building Projects

133

CAUTION

Don’t alter project dependencies unless you really know what you are doing. The results could be severe in that it can take a long time to fix dependencies in a large project. The automatic dependency management provided by VS is very dependable, and you should rely upon it whenever possible.

Managing Compilation Settings

The project property pages include a tab for compiler settings. You set compiler settings for each individual project. Figure 5-10 shows the C# tab, which you can open by double- clicking the Properties folder on a project. Some of these settings are advanced topics that are out of the scope of this book. For example, this book doesn’t discuss COM Interop, unsafe code generation, or serialization assemblies. I’ll simply mention the setting with a quick explanation so that you’ll know it’s there if you ever run into one of these scenarios in the future.

The DEBUG and TRACE compilation constants enable you to use the Debug and

Trace classes, respectively, that are members of the .NET Framework System.Diagnostics

Figure 5-10 C# Compiler Options

Page 156
Image 156
Microsoft 9GD00001 manual Managing Compilation Settings, 133