Article ID: 310905 - Last Review: July 29, 2002 - Revision: 1.0 PRB: CS0518 Compiler Error When You Build a Visual C# .NET ApplicationThis article was previously published under Q310905 SYMPTOMS
When you build a Visual C# .NET application, you may receive the following error message in the compiler:
error CS0518: The predefined type 'type' is not defined or imported
CAUSE
The following are possible causes:
RESOLUTION
To resolve this problem, follow these steps:
STATUS
This behavior is by design.
MORE INFORMATION
The /nostdlib option prevents the import of Mscorlib.dll, which defines the entire System namespace. Use this option if you want to define or create a user-specific System namespace.
| Article Translations
|
Back to the top
