Compiling files using csc.exe

  • Thread starter Thread starter Cin
  • Start date Start date
C

Cin

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
 
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
 
Back
Top