To run the C # project program in Visual Studio code

Source: Internet
Author: User
Tags dotnet
. NET is a Microsoft company's platform, while the C # language is. NET company, an excellent object-oriented language. so how to run the C # program under the Lightweight Vscode editor, the following are the steps for me to review the data. Environment InstallationVscode website Download: https://code.visualstudio.com/. NET Core SDK Installation: https://www.microsoft.com/net/download/core C # plugin download, Download the Restart Vscode window to take effect
New ProjectIn the Vscode terminal input CD: The project file directory you created
For example: CD D:\ Innovation Practice \c#
Then enter: Dotnet New–help, the prompt to create a new project command appears
dotnet New--help
Then create a simple console application that is the C # project program
dotnet New Console
Run the created console program on the console
Dotnet Run
Finally, using Vscode to open the project directory we just created, the software will automatically download the. NET Core Debugger, wait for the download installation (install the mode plug-in), the installation successfully reopen the project folder again, and Vscode will automatically configure select Yes and restore.

You can now run or debug a C # project in Vscode, and Program.cs is the source file for C # after the new project. Project Run command:dotnet Run


If you need to debug to open the Debug window, set breakpoints to debug









next semester will inevitably and often deal with C #, although the basic is in visual Studio 2017 to run C #, but before downloading VS2017 I was a simple study of Vscode can integrate the operating environment of C #, Baidu has some information, Now a simple collation can be for everyone's reference, but also left to their own reference.

Programming this is a race between software engineers striving to build bigger and better idiot-proof programs, and the U Niverse trying to produce bigger and better idiots. So far, the universe is winning. –rick Cook

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.