.NET Core installation guide

时间:2023-03-08 18:39:47

 

.NET Core installation guide

1.Download Visual Studio 2015

    Make sure you have Visual Studio 2015 Update 3 installed.

    Download Visual Studio 2015 with Update 3

    Or just download Visual Studio 2015 Update 3 if you already have Visual Studio 2015 installed.

2.

Install the .NET Core tools preview for Visual Studio

.NET Core tools add support for .NET Core projects in Visual Studio 2015.

Download .NET Core 1.0.1 tools Preview 2

3.

  Create a new .NET Core project

  Click on File / New project and select the project template C# / .NET Core / Console application (.NET Core).

.NET Core installation guide

4.

Add some code

Write some code in your Main method.

.NET Core installation guide

5.

Run your application

Click on the menu item Debug / Start debugging to launch and debug your new .NET Core application from Visual Studio.

.NET Core installation guide

3.1.2 简单的运行结果

打开cmd,依次输入mkdir .project(创建目录),cd .\.project(进入目录),dotnet new(新建初始项目),dotnet restore(还原依赖),dotnet run(运行)即可运行第一个Hello World程序

.NET Core installation guide