The first C # Program

Source: Internet
Author: User

[Csharp] using System; class Program {public static void Main () {Console. writeLine ("HelloWorld. ") ;}} install it first. in the. NET Framework SDK environment, open the command prompt tool under the VS menu of all programs in the Start button and save the above Code to its root directory. The command is hello. cs, and then enter: csc hello. cs. CSC.exe compiles Visual C # program code into an IL file, which has many parameters and switch options. Command Line example to compile File. cs to generate File.exe: csc File. cs compiles File. cs to generate File. dll: csc/target: library File. cs compiles File. cs and create My.exe: csc/out: My.exe File. cs compiles all C # files in the current directory by optimizing and defining the DEBUG symbol. The output is File2.exe: csc/define: DEBUG/optimize/out: File2.exe *. cs. compile all the C # files in the current directory to generate the debugging version of File2.dll. No logo or warning is displayed: csc/target: library/out: File2.dll/warn: 0/nologo/debug *. cs compiles all C # files in the current directory into Something. xyz (a DLL): csc/target: library/out: Something. xyz *. cs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.