Leave Visual Studio C # compilation (C # That you don't know #),

Source: Internet
Author: User

Leave Visual Studio C # compilation (C # That you don't know #),

Many people will install Visual studio on their first day of learning. net, or the first chapter in many books on C # will definitely tell you to download a

In fact, no vs may not be available for development, but it may be said that vs has brought a lot of convenience to my development, but it is used as a beginner at the beginning.,May cause you to ignore

A lot of principles,Generally, after Windows XP, Microsoft's Windows operating systems are installed with. netframework by default. net and java. I think

. Netframework is equivalent to java's jdk (don't like it if you don't like it personally). java knows that javac.exe (compilation tool) java.exe (running tool) is included in the jdk tool package)

Of course, java runs based on virtual machines. Besides jdk, it also contains the jre during development and debugging...

Back to the original topic,. net can also use the compilation tool to compile from the line. For example, win7 is generally used in: C: \ Windows \ Microsoft. NET \ Framework64 \ v4.0.30319.

You can find csc.exe under the folder. This is the C # compilation tool.

 

 At this time, we can configure the environment variable to locate the running path under pathC: \ Windows \ Microsoft. NET \ Framework64 \ v4.0.30319;

Note that you can just add and do not delete the previous one,

In fact, this environment variable configuration does not matter in nature, but it is because we will execute the compilation in dos later.

C # file. If it is not configured, it will be very troublesome to locate the file. Then, run the cmd command to test whether javascsc.exe is correct.

We can see that after the configuration environment changes, after we input csc.exe in dos, we will prompt the version of the compilation tool, but we have not specified the version to be compiled

File, then we will use the notepad that comes with window to write a simple C # windorm Application

 

The cmd command may be involved, so if you are not clear about it, just take a look at the cmd doscommand,

After compilation, we will execute this.

In this way, we are not completely out of visual studio?

 

 

 

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.