Option | Purpose |
---|---|
@ | Specify a response file. |
/? | Display compiler options. No compilation will occur. |
/assembly.keycontainer | Specify the originator of an assembly. |
/assembly.keyfile | Specify a file with a key pair to make a shareable component. |
/assembly.version | Create an assembly and modify the Version field in the metadata. |
/baseaddress | Specify the base address of a DLL. |
/bugreport | Create a file that contains information that makes it easy to report a bug. |
/cls | Turn on Common Language Subset (CLS) checking. |
/debug | Produce debugging information |
/define | Define preprocessor symbols. |
/help | Display compiler options. No compilation will occur. |
/import | Import a namespace from a specified assembly. |
/linkresource | Link a NGWS runtime resource to an assembly rather than directly embedding it. |
/main | Specify the class that contains the Sub Main procedure to use at startup. |
/nologo | Suppress compiler banner information. |
/nooutput | Compile but do not create an output file. |
/nostdlib | Do not import the standard libraries Mscorlib.dll and Microsoft.VisualBasic.dll. |
/optimize | Enable/disable code optimization. |
/optioncompare | Determines whether string comparisons should be binary or use locale specific text semantics. |
/optionexplicit | Require explicit declaration of variables. |
/optionstrict | Enforce strict language semantics. |
/out | Specify output file. |
/recurse | Search subdirectories for source files to compile. |
/reference | Import metadata from a file that contains an assembly. |
/removefpchecks | Disable floating point error checking. |
/removeintchecks | Disable integer overflow checking. |
/resource | Embed a specified NGWS runtime resource into the output file. |
/target | Specify the format of the output file using one of four options: /target:exe /target:library /target:module /target:winexe |
/Time | Output total compilation time. |
/verbose | Output extra information during compilation. |
/warn | Set warning level. |
/warnaserror | Promote warnings to errors. |
/win32icon | Insert a .ico file into the output file. |
/win32resource | Insert a Win32 resource into the output file. |
Visual Basic Compiler Options Listed by Category | Building from the Command Line