Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The Visual Basic command-line compiler is provided as an alternative to compiling programs from within the Visual Studio integrated development environment (IDE). The following is a list of the Visual Basic command-line compiler options sorted by functional category.
Compiler Output
Option |
Purpose |
Suppresses compiler banner information. |
|
Displays compiler output using UTF-8 encoding. |
|
Outputs extra information during compilation. |
Optimization
Option |
Purpose |
Specifies where to align the sections of the output file. |
|
Enables/disables optimizations. |
Output Files
Option |
Purpose |
Process documentation comments to an XML file. |
|
Sets the compiler to target the .NET Compact Framework. |
|
Specifies an output file. |
|
Specifies the format of the output. |
.NET Assemblies
Option |
Purpose |
Causes the compiler to make all type information from the specified file(s) available to the project you are currently compiling. |
|
Specifies whether the assembly will be fully or partially signed. |
|
Imports a namespace from a specified assembly. |
|
Specifies a key container name for a key pair to give an assembly a strong name. |
|
Specifies a file containing a key or key pair to give an assembly a strong name. |
|
Specifies the location of assemblies referenced by the /reference option. |
|
Imports metadata from an assembly. |
|
Specifies the name of the assembly that a module will be a part of. |
Debugging/Error Checking
Option |
Purpose |
Creates a file that contains information that makes it easy to report a bug. |
|
Produces debugging information. |
|
Suppresses the compiler's ability to generate warnings. |
|
Prevents the compiler from displaying code for syntax-related errors and warnings. |
|
Disables integer overflow checking. |
|
Promotes warnings to errors. |
Help
Option |
Purpose |
Displays the compiler options. This command is the same as specifying the /help option. No compilation occurs. |
|
Displays the compiler options. This command is the same as specifying the /? option. No compilation occurs. |
Language
Option |
Purpose |
Specifies that the compiler should accept only syntax that is included in the specified version of Visual Basic. |
|
Enforces explicit declaration of variables. |
|
Enforces strict type semantics. |
|
Specifies whether string comparisons should be binary or use locale-specific text semantics. |
|
Enables the use of local type inference in variable declarations. |
Preprocessor
Option |
Purpose |
Defines symbols for conditional compilation. |
Resources
Option |
Purpose |
Creates a link to a managed resource. |
|
Embeds a managed resource in an assembly. |
|
Inserts an .ico file into the output file. |
|
Inserts a Win32 resource into the output file. |
Miscellaneous
Option |
Purpose |
Specifies a response file. |
|
Specifies the base address of a DLL. |
|
Specifies the code page to use for all source code files in the compilation. |
|
Specifies how the Visual Basic compiler should report internal compiler errors. |
|
Tells the Windows kernel whether a particular executable supports high entropy Address Space Layout Randomization (ASLR). |
|
Specifies the class that contains the SubMain procedure to use at startup. |
|
Do not compile with Vbc.rsp |
|
Causes the compiler not to reference the standard libraries. |
|
Instructs the compiler not to embed any application manifest into the executable file. |
|
Specifies the processor platform the compiler targets for the output file. |
|
Searches subdirectories for source files to compile. |
|
Specifies a namespace for all type declarations. |
|
Specifies the location of Mscorlib.dll and Microsoft.VisualBasic.dll. |
|
Specifies that the compiler should compile without a reference to the Visual Basic Runtime Library, or with a reference to a specific runtime library. |
|
Identifies a user-defined Win32 application manifest file to be embedded into a project's portable executable (PE) file. |
See Also
Reference
Visual Basic Compiler Options Listed Alphabetically
C# Compiler Options Listed Alphabetically
C# Compiler Options Listed by Category