Compilation and Execution
You can compile the "Hello World!" program either by creating a project in the Visual Studio IDE, or by using the command line.To compile the program from the command line:
Create the source file using any text editor and save it using a name such as Hello.cs. C# source code files use the extension .cs.
To invoke the compiler, enter the command:
csc Hello.cs
If your program does not contain any compilation errors, a Hello.exe file will be created.
To run the program, enter the command:
Hello


0 comments:
Post a Comment