How to use the vs2013 Developer Command Prompt tool to execute a method (a simple demo)

Source: Internet
Author: User
  1. Write a static Main method in any editor, must be static and named Main method, and the main method is located in the class file named Yang.cs (the name casually named), 1.

    Figure-1

  2. Open your vs2013 developer command prompt,-2.

    Figure-2

  3. Note that the first line in Figure 2 is a path that puts a class file named Yang.cs into this path,-3.

    Figure-3

  4. Enter CSC Yang.cs in the vs2013 Developer command Prompt and press ENTER,-4.

    Figure-4

  5. Then look at what happened under the path (a yang.exe executable was generated), 5.

    Figure-5

  6. Then continue typing in the vs2013 developer command prompt: Yang, you can execute the main method you wrote,-6.

    Figure-6

  7. Because the main method has the ability to receive input, you can continue typing,-7.

    Figure-7

  8. If your method is not static or the method name is not main, there will be such a mistake,-8 and figure-9.

Figure-8

Figure-9

Note: I am a rookie, if there is a mistake, please correct me, thank you!!!

How to use the vs2013 Developer Command Prompt tool to execute a method (a simple demo)

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.