Write a C # console application completely without using VS

Source: Internet
Author: User
(because this must be a console application) csc.exe is the C # compiler step in the Microsoft. NET Framework as follows: 1) write a console application code in Notepad, save it in the E-drive, Test.cs
Using System;namespace test{class program{static void Main (String[]args) {Console.WriteLine ("Life will be better"); Console.readkey ();}}}

 

2) Open cmd run into Test.cs folder (e-Disk), execute: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe Test.cs (my local address is this) will find an e-disk more than one test.exe file, execute test.exe.

 

Write a C # console application completely without using VS

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.