[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 
/out:..\Build
\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 
correct.

Thanks,

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 
found
Date: Sat, 11 Jan 2003 12:48:02 -0500
MIME-Version: 1.0
Received: from mc10-f34.bay6.hotmail.com ([65.54.166.170]) 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 ([141.154.95.22]) 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 [127.0.0.1])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 [24.93.67.83])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 [24.93.67.54])by ncsmtp02.ogw.rr.com 
(8.12.5/8.12.2) with ESMTP id h0BHmoup019694;Sat, 11 Jan 2003 12:48:50 -0500 
(EST)
Received: from danpc ([66.57.168.238]) by mail7.sc.rr.com  with Microsoft 
SMTPSVC(5.5.1877.757.75); Sat, 11 Jan 2003 12:47:08 -0500
Message-ID: <JEEKLEDOLGOLOABENDFBAEGDDDAA.danmorg@sc.rr.com>
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) 
FILETIME=[067BBD30:01C2B99A]

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
found


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

Context:
I downloaded and installed 0.17 on Windows 2000.

Command Line:
E:\Development\ClaveCode\Builds\2003-01-10\Enterprise\Configuration>mcs.bat
-out:..\..\bin\Mono\Debug\ClaveCode.Enterprise.dll -target:library -unsafe-
-warnaserror+ -warn:4 ConfigurationDB.cs

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

Comments:
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
system.dll.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup