RAD Studio (Common)
ContentsIndex
PreviousUpNext
Compiler (Visual Basic)

ProjectOptionsCompiler 

Use this dialog box to set the Visual Basic compiler options for the current project. For additional information about the Visual Basic compiler options, see the .NET Framework SDK online Help.

Item 
Description 
Debug/Release  
Indicates the current set of project options. By default, the distributed Debug and Release option sets have settings appropriate for debugging and deploying an application, respectively. The option sets provide an easy way to change project options based on your development activity. To create a user-defined option set, use the Save as button.  
Save as  
Displays a dialog box for naming and saving a user-defined set of project options.  
Delete  
Deletes the current option set. Only user-defined option sets can be deleted. The distributed Debug and Release option sets can not be deleted.  
Debug information  
Causes the compiler to generate debugging information and place it in a program database file (.pdb) the next time you run the application.
Corresponds to /debug.  
Optimization  
Enables optimizations performed by the compiler to make your output file smaller, faster, and more efficient. This option also tells the common language runtime to optimize code at runtime.
Corresponds to /optimize.  
Treat warnings as errors  
Treats all warnings as errors. Any messages that would ordinarily be reported as warnings are instead reported as errors, and the build process is halted (no output files are built).
Corresponds to /warnaserror.  
Show warnings  
Generates compiler warnings.
Corresponds to /nowarn.  
Conditional Defines  
Enter symbols referenced in conditional compiler directives. Separate multiple symbols with semicolons.  
Output Directory  
Specifies where the compiler will put the executable file.
Corresponds to /out.  

Tip: To display the compiler options in the Message
window when you compile a project, choose ToolsOptionsEnvironment Options and select the Show command line option. The next time you compile a project, the command used to compile the project and the response file will be displayed in the Messages window. The response file lists the compiler options and the files to be compiled.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!