This documentation is archived and is not being maintained.

/nostdlib

Does not import a standard library.

/nostdlib[+ | -]

+| -

/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-).

Specifying /nostdlib+ also specifies /autoref-.

If you have a namespace called System. String (or any other name in mscorlib) the only way you could access the elements is to use

/nostdlib /r:your_library,mscorlib 

to search your library before mscorlib. You should not define a System namespace in your application.

Show: