. 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