Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C#
C# Reference
C# Compiler Options
 /nostdlib (Do Not Import Standard L...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
C# Language Reference 
/nostdlib (Do Not Import Standard Library) (C# Compiler Options) 

/nostdlib prevents the import of mscorlib.dll, which defines the entire System namespace.

/nostdlib[<U>+</U> | -]

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 is the same as specifying /nostdlib+.

To set this compiler option in the Visual Studio development environment

  1. Open the Properties page for the project. For details, see How to: Set Project Properties (C#, J#).

  2. Click the Build properties page.

  3. Click the Advanced button.

  4. Modify the Do not reference mscorlib.dll property.

For information on how to set this compiler option programmatically, see NoStdLib.

Other Resources

C# Compiler Options

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker