Make sure you have Visual Studio 2015 Update 3 installed.
Or just download Visual Studio 2015 Update 3 if you already have Visual Studio 2015 installed.
2.
.NET Core tools add support for .NET Core projects in Visual Studio 2015.
Download .NET Core 1.0.1 tools Preview 2
3.
Click on File / New project and select the project template C# / .NET Core / Console application (.NET Core).
4.
Write some code in your Main method.
5.
Click on the menu item Debug / Start debugging to launch and debug your new .NET Core application from Visual Studio.
打开cmd,依次输入mkdir .project
(创建目录),cd .\.project
(进入目录),dotnet new
(新建初始项目),dotnet restore
(还原依赖),dotnet run
(运行)即可运行第一个Hello World程序
原文:http://www.cnblogs.com/laopo/p/6287937.html