[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Compiling files using csc.exe

Cin

8/13/2003 8:00:00 AM

Hi,

I have two files:

ClassA.cs and Main.cs

I need to use ClassA in the Main.cs file inside another class (and so
there seems to be a dependency). How do I do that? Do I need to provide
a namespace and then "using" it? How do I then compile these two files
at the same time from the commandline (I have plenty of other files and
I don't want to do: csc *.cs /o)

Please help. Thanks

Cindy

1 Answer

(Mattias Sjögren)

8/13/2003 9:38:00 AM

0

Cindy,

>I need to use ClassA in the Main.cs file inside another class (and so
>there seems to be a dependency). How do I do that? Do I need to provide
>a namespace and then "using" it?

No, that''s not necessary.


>How do I then compile these two files
>at the same time from the commandline (I have plenty of other files and
>I don''t want to do: csc *.cs /o)

Just list both files.

csc /o Main.cs ClassA.cs



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.n...
Please reply only to the newsgroup.