1. 安装 .NET Core SDK
下载地址:https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
dotnet –info
检验SDK是否安装成功:

2. 命令行创建项目
安装好.NET Core SDK后,即可通过命令行创建项目、运行项目,开发也就可以用任意编辑器进行开发了,不过不知道有没有实时编译的功能,否则最好还是用ide,对于代码高亮、语法检测、错误提示、编译、调试会方便很多。
dotnet new console -o projectName // 创建一个目录命名为projectName
cd projectName

3. 安装IDE(Visual Studio或Visual Studio Code)

下载地址:https://dotnet.microsoft.com/platform/tools
如果安装Visual Studio,下载后可一键安装.NET Core SDK,省去第一步。
网友评论