The cmd command compiles C # source code using the C # compiler that comes with Windows

Source: Internet
Author: User

1. Write good C # source files (. cs).

2. Find the C # compiler csc.exe that comes with the window, and the general path is C:\Windows\Microsoft.NET\Framework\v4.0.30319 or C:\Windows\Microsoft.NET \framework64\v4.0.30319

3. Run cmd as Administrator, or you will receive an error denying access to the resource. Then run the following command to compile.

4. You can also configure system variables. Use the shortcut key Win+break to open the System Properties page, then follow the steps as follows. Note that if the PATH environment variable exists originally, it is split with ";" and continues to be added later.

5, with the name of the CSC directly run, such as

The cmd command compiles C # source code using the C # compiler that comes with Windows

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.