网络科技

    今日:25| 主题:301306
收藏本版
互联网、科技极客的综合动态。

[其他] Build your first .NET Core application using Visual Studio 2017

[复制链接]
梦转千遍如若初见 发表于 2016-11-30 18:16:24
160 3
This article is a step by step guideline to write your very first basic Hello World! .NET Core app using Visual Studio 2017.
  Step 1. Download and Install Visual Studio 2017.

  Download and install Visual Studio 2017 from the following URL. The current version of Visual Studio 2017 is RC.
   Download website: https://www.visualstudio.com/
  Step 2. Download and Install .NET Core

   Google “download .net core” and you will see the first link www.microsoft.com/net/core .
  Download and install .NET Core. Please keep in mind, this URL may change in future.
  Step 3. Create a project

  Open Visual Studio 2017 and create a new project by selecting New > Project. You will see .NET Core in the left side of templates and in the right side, you will see various .NET Core templates as listed in the following image.
   

Build your first .NET Core application using Visual Studio 2017

Build your first .NET Core application using Visual Studio 2017

  Select the Console App (.NET Core), give your project a name, select a correct folder, and click OK. This will create your first, Hello World! .NET Core project.
  The default program has a Program.cs file that has code that is listed in the following code snippet. Keep in mind, the Console.ReadKey(); is the code I added after the file was already created.
  1. using System;  
  2.   
  3. class Program   
  4. {  
  5.   
  6. static void Main(string[] args)   
  7. {   
  8.   Console.WriteLine("Hello World!");   
  9.   Console.ReadKey();   
  10. }   
  11. }  
复制代码
Step 3. Build and run

  Build and run your project by hitting F5 or Fn+F5.
  The output looks like the following figure.
   

Build your first .NET Core application using Visual Studio 2017

Build your first .NET Core application using Visual Studio 2017

  Congratulations! You just built and ran your very first .NET Core.
a1315805163 发表于 2016-11-30 19:47:51
回个帖子,下班咯~
回复 支持 反对

使用道具 举报

邓倩 发表于 2016-12-1 00:07:37
没有不透风的墙,没有不能上吊的梁。
回复 支持 反对

使用道具 举报

千雁 发表于 2016-12-3 17:37:08
前排支持下
回复 支持 反对

使用道具 举报

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/c.CoLaBug.com ( 粤ICP备05003221号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表