Advanced Compiler Settings Dialog Box (Visual Basic)
Use the Advanced Compiler Settings dialog box of the Project Designer to specify the project's advanced build-configuration properties. This dialog box applies to Visual Basic projects only. For more information, see.
To access this dialog box, select a project node in Solution Explorer, then on the Project menu, click Properties. When the Project Designer appears, click the Compile tab. On the Compile page, click the Advanced Compile Options button.
The following descriptions assume that your environment settings are set to General Development Settings (from the Tools menu, click Import and Export Settings). Some of the default settings below might differ for other environment settings.
The following options specify optimizations that can in some cases make an application file smaller, make an application run faster, or speed up the build process. See.
- Remove integer overflow checks
By default, this check box is cleared to include integer overflow checks. Select this check box to remove integer overflow checks.
- Enable optimizations
By default, this check box is cleared to disable compiler optimizations. Select this check box to enable compiler optimizations.
- DLL base address
This text box displays the default DLL base address in hexadecimal format. In Class Library and Control Library projects, you can use this text box to specify the base address to be used when creating the DLL.
- Generate debug info
Select None, Full, or pdb-only from the drop-down list. None specifies that no debugging information be generated. Full specifies that full debugging information be generated, and pdb-only specifies that only PDB debugging information be generated. By default, this option is set to Full.
Conditional compilation constants determine whether tracing and debugging statements should be compiled into the assembly or not. Seeand .
- Define DEBUG constant
By default, this check box is selected, specifying that a DEBUG constant be set.
- Define TRACE constant
By default, this check box is selected, specifying that a TRACE constant be set.
- Custom constants
Enter any custom constants for your application in this text box. Entries should be delimited by commas, using this form: Name1="Value1",Name2="Value2",Name3="Value3".
- Generate serialization assemblies
This setting specifies whether the compiler will use the Typename.XmlSerializers.dll.to create XML serialization assemblies. Serialization assemblies can improve the startup performance of if you have used that class to serialize types in your code. By default, this option is set to Auto, which specifies that serialization assemblies be generated only if you have used XmlSerializer to encode types in your code to XML. Off specifies that serialization assemblies never be generated, regardless of whether your code uses XmlSerializer. On specifies that serialization assemblies always be generated. Serialization assemblies are named
- Target CPU
This setting specifies whether the compiler should optimize compilation for a specific CPU type, for example, a 64-bit processor. Select AnyCPU, x86, x64, or Itanium from the drop-down list. By default, this option is set to AnyCPU, specifying that the compiler not optimize compilation for a specific CPU type.