VSCode C#

只支持 .NET Core。

.NET Core

安装 .NET Core SDK,安装完成后在终端中运行

dotnet --version
dotnet -h

第一个程序 Hello World

mkdir helloworld && cd helloworld
dotnet new console
dotnet restore
dotnet run

Microsoft C# extension

教程:Instructions for setting up the .NET Core debugger

VSCode 打开上面 helloworld

"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/helloworld.dll",

c# - dotnet build specify main method

Get started with VS Code using C# and .NET Core on Windows

Creating a .NET Core Console application in just 5 minutes