C # runs C # programs through CSC including environment configuration __c#

Source: Internet
Author: User
First we have to learn to use the framework of the CSC editor with the C # Editor, first of all, configure the environment, if we want to be in the CMD command window to edit, we have to install the. NET Framework and then find c:\WINDOWS\Microsoft.NET\ Framework\ When you enter this directory, there will be a lot of versions for you to choose from, you are best to choose the latest version, and then go in, you will find csc.exe and then the path of the time to copy.
Then go to your desktop and find your computer icon, then right-click to select Properties, then select Advanced, then click on the environment variable and then locate the path, then click Edit, then paste the path you just copied to the front and remember to add; Must be English.
This time you can open cmd and then input CSC can be recognized at this point, and then you, first use Notepad to write a small program to run the
Using System;


Namespace HelloWorld
{
    class program
    {
        //SVM  Double-click tab   
        static void Main (string[] args)
        {
           //CW Double-click Tab

           Console.WriteLine ("Hello.") Jor. SMITH ");
            View local function Content Click Function Press F12

            //view online function specific content click Function Press F1

            //Object Browser Use}}////
run F5
//debug CTRL + F5




The first box is used to test whether it can be used, if your CSC is configured successfully, the second box is used to run the first CSC and then the path is the path to your program text remember to change your program text suffix to C # special suffix. After the CS run, the. exe instruction set will be run by default. Line, is also through the CMD CSC running direct Input program name does not need a suffix and then can run.




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.