NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Visual Basic Compiler Options Listed by Category

The following compiler options are sorted by category.

Optimization

Option Purpose
/optimize Enable/disable optimizations.

Output Files

Option Purpose
/out Specify output file.
/nooutput Compile but do not create an output file.
/target Specify the format of the output file using one of four options:
/target:exe
/target:library
/target:module
/target:winexe

NGWS runtime Assemblies

Option Purpose
/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.
/nostdlib Do not import the standard libraries Mscorlib.dll and Microsoft.VisualBasic.dll.
/reference Import metadata from a file that contains an assembly.

Debugging/Error Checking

Option Purpose
/bugreport Create a file that contains information that makes it easy to report a bug.
/cls Turn on Common Language Subset (CLS) checking.
/debug Emit debugging information.
/removefpchecks Disable floating point error checking.
/removeintchecks Disable integer overflow checking.
/warn Set warning level.
/warnaserror Promote warnings to errors.

Preprocessor

Option Purpose
/define Define preprocessor symbols.

Resources

Option Purpose
/linkresource Link a NGWS runtime resource to an assembly.
/resource Embed a specified NGWS runtime resource into the output file.
/win32icon Insert a .ico file into the output file.
/win32resource Insert a Win32 resource into the output file.

Miscellaneous

Option Purpose
@ Specify a response file.
/? Displays the compiler options. This command is the same as specifying the /help option.
/baseaddress Specify the base address of a DLL.
/help Displays the compiler options. This command is the same as specifying the /? option.
/main Specify the class that contains the Sub Main procedure to use at startup.
/nologo Suppress compiler banner information.
/optionexplicit Require explicit declaration of variables.
/optionstrict Enforce strict type semantics.
/optioncompare Determines whether string comparisons should be binary or use locale specific text semantics.
/recurse Search subdirectories for source files to compile.
/Time Output total compilation time.

See Also

Visual Basic Compiler Options Listed Alphabetically | Building from the Command Line