When Using the Visual Studio CMD Command Prompt
Then try as follows:
csc filename.cs /main:classname
where filename is the name of the file in which the code is stored, and classname is the name of the class containing Main, which we would like to be an entry point.
As in this program, there are two classes A and B, in which each contains A Basic method. We can write how
csc filename.cs / main: A [for the main execution of class A] or
csc filename.cs / main: B [for the main execution of class B]
yogesh pant
source share