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.
To access this dialog box
In Solution Explorer, choose a project node (not the Solution node).
On the Project menu, click Properties. When the Project Designer appears, click the Compile tab.
On the Compile Page, Project Designer (Visual Basic), select the Configuration and Platform. In simplified build configurations, the Configuration and Platform lists are not displayed. For more information, see Debug and Release Project Configurations.
Click Advanced Compile Options.
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Customizing Settings.
Conditional compilation constants have an effect similar to that of using a #Const preprocessor directive in a source file, except that constants defined are public and apply to all files in the project. You can use conditional compilation constants together with the #If...Then...#Else directive to compile source files conditionally. See Conditional Compilation in Visual Basic.