[Mono-list] error CS0246: The namespace `System' can not be found

Kenneth Brubaker kennethbrubaker@hotmail.com
Sat, 11 Jan 2003 13:17:00 -0600

Yes, I already tried that.  Here's another commandLine that illustrates:

E:\Development\ClaveCode\Builds\2003-01-10\Enterprise>call mcs.bat 
\Mono\Debug\ClaveCode.Enterprise.dll /target:library /recurse:*.cs 
/warnaserror+ /warn:4 /checked+ 
-lib:E:\Development\Download\Mono\mono-1.7\install\lib -reference:corlib.dll

If I change the name to corlibE.dll, i get a message that it can't find 
corlibE.dll, so I know it's finding it.  This to me is very strange.

I wonder if the placement of my install is a problem, the mcs.bat text seems 


Kenneth Brubaker, President
Just In Time Consulting Services, Inc

----Original Message Follows----
From: "Daniel Morgan" <danmorg@sc.rr.com>
To: "Kenneth Brubaker" <kennethbrubaker@hotmail.com>, <mono-list@ximian.com>
Subject: RE: [Mono-list] error CS0246: The namespace `System' can not be 
Date: Sat, 11 Jan 2003 12:48:02 -0500
MIME-Version: 1.0
Received: from mc10-f34.bay6.hotmail.com ([]) by 
mc10-s6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 11 Jan 
2003 09:51:10 -0800
Received: from trna.ximian.com ([]) by 
mc10-f34.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 11 Jan 
2003 09:51:10 -0800
Received: from trna.ximian.com (localhost [])by trna.ximian.com 
(8.11.6/8.11.6) with ESMTP id h0BHopJ05477;Sat, 11 Jan 2003 12:50:51 -0500
Received: from ncsmtp02.ogw.rr.com (ncsmtp02.ogw.rr.com [])by 
trna.ximian.com (8.11.6/8.11.6) with ESMTP id h0BHojJ05454for 
<mono-list@ximian.com>; Sat, 11 Jan 2003 12:50:45 -0500
Received: from mail7.sc.rr.com (fe7 [])by ncsmtp02.ogw.rr.com 
(8.12.5/8.12.2) with ESMTP id h0BHmoup019694;Sat, 11 Jan 2003 12:48:50 -0500 
Received: from danpc ([]) by mail7.sc.rr.com  with Microsoft 
SMTPSVC(5.5.1877.757.75); Sat, 11 Jan 2003 12:47:08 -0500
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <F150agC1rMSWWuPiWFe00019363@hotmail.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: mono-list-admin@ximian.com
Errors-To: mono-list-admin@ximian.com
X-Mailman-Version: 1.1
Precedence: bulk
List-Id: Mono Developer Discussion List <mono-list.ximian.com>
X-BeenThere: mono-list@ximian.com
Return-Path: mono-list-admin@ximian.com
X-OriginalArrivalTime: 11 Jan 2003 17:51:10.0467 (UTC) 

You could try using the -lib: switch to include the library path to your
assemblies like System.dll, etc...

mcs xxx.cs -lib:c:/mono-0.17/install/lib

You could try the following too:
in the Windows control panel, set the PATH environment variable to your
X:\mono\install\lib and your X:\mono\install\bin paths
setting LD_LIBRARY_PATH to your X:\mono\install\lib path may help too

-----Original Message-----
From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com]On
Behalf Of Kenneth Brubaker
Sent: Saturday, January 11, 2003 12:37 PM
To: mono-list@ximian.com
Subject: [Mono-list] error CS0246: The namespace `System' can not be

When I run mcs.bat ... xxx.cs I get "
error CS0246: The namespace `System' can not be found".  How do I resolve

I downloaded and installed 0.17 on Windows 2000.

Command Line:
-out:..\..\bin\Mono\Debug\ClaveCode.Enterprise.dll -target:library -unsafe-
-warnaserror+ -warn:4 ConfigurationDB.cs

ConfigurationDB.cs(1) error CS0246: The namespace `System' can not be found
(missing assembly reference?)

Probably something simple, but I haven't found anything in "Beginning" or on
a google of this mailing list. I tried executing from where the *.cs file is
and where corlib.dll is.  I tried referencing both corlib.dll and

Add photos to your e-mail with MSN 8. Get 2 months FREE*.

Mono-list maillist  -  Mono-list@ximian.com

Mono-list maillist  -  Mono-list@ximian.com

The new MSN 8 is here: Try it free* for 2 months