/nostdlib (Visual Basic)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Causes the compiler not to automatically reference the standard libraries.
/nostdlib option removes the automatic reference to the System.dll assembly and prevents the compiler from reading the Vbc.rsp file. The Vbc.rsp file—which is located in the same directory as the Vbc.exe file—references the commonly used .NET Framework assemblies and imports the
The Mscorlib.dll and Microsoft.VisualBasic.dll assemblies are always referenced.
The following code compiles
T2.vb without referencing the standard libraries. You must set the
_MYTYPE conditional-compilation constant to the string "Empty" to remove the
vbc /nostdlib /define:_MYTYPE=\"Empty\" T2.vb