How to: Set Compiler Optimizations (Visual Basic)
The Visual Basic compiler supports several optimizations that can, in some cases, make an application file smaller, make an application run faster, or speed up the build process, Compiler optimizations are set in the Advanced Compiler Settings dialog box, accessible from the Compile page of the Project Designer.
To remove integer overflow checks
With a project selected in Solution Explorer, on the Project menu. click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
In the Advanced Compiler Settings dialog box, select the Remove integer overflow checks check box.
To enable optimizations in the output file
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
In the Advanced Compiler Settings dialog box, select the Enable optimizations check box.
To generate debugging information
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
The Advanced Compiler Settings dialog box appears. In the Generate debug info list, select Full, None, or pdb-only.
See Also
Tasks
How to: Set Compilation Constants (Visual Basic)
How to: Specify a Base Address for a DLL
How to: Optimize an Application for a Specific CPU Type
Reference
Advanced Compiler Settings Dialog Box (Visual Basic)
Advanced Build Settings Dialog Box (C#)