47.4. C# Build Pages
C# provides its own set of build options. In general, the options are the same as those available to a Visual Basic project, but in a different location because C# programmers are more likely to tweak the output than are Visual Basic developers, who are typically more interested in rapid development than in fine-tuning performance.
Instead of a single Compile page in the project property pages, C# has a Build page and a Build Events page. The Build Events page acts in exactly the same way as the Build Events dialog in Visual Basic, so refer to the previous discussion for information on that page.
As you can see in Figure 47-8, many of the options on the Build page have direct correlations to settings found in the Compile page or in the Advanced Compiler Settings area of Visual Basic. Some settings, such as the "Define DEBUG constant" and the "Define TRACE constant," are identical to their Visual Basic counterparts.
Figure 47.8. Figure 47-8
However, some are renamed to fit in with a C-based vocabulary; for example, "Optimize code" is equivalent to "Enable optimizations." As with the Visual Basic compile settings, you can determine how warnings are treated, and you can specify a warning level.
Clicking the Advanced button on the Build page invokes the Advanced Build Settings dialog, shown in Figure 47-9, which includes settings that are not accessible to Visual ...
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.
Read now
Unlock full access