Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
/nostdlib

/nostdlib

Does not import a standard library.

/nostdlib[+ | -]

Arguments

+ | -
/nostdlib or /nostdlib+ option causes the compiler to not import mscorlib.dll. Use this option if you want to define or create your own System namespace and objects. If you do not specify /nostdlib, mscorlib.dll will be imported into your program (same as specifying /nostdlib-).

Remarks

Specifying /nostdlib+ also specifies /autoref-.

Example

If you have a component called System. String (or any other name in mscorlib) the only way you could get at your component would be to use

/nostdlib /r:your_library,mscorlib 

to search your library before mscorlib. Commonly, you would not a define a namespace in your application called System.

See Also

JScript Compiler Options

Show:
© 2015 Microsoft