Dotnet Core 简明教程
.NET Core - Environment Setup
在本章中,我们将讨论 .NET Core 的环境设置。它对 .NET Framework 进行了重大重新设计。要在您的应用程序中使用 .NET Core,您可以使用两个版本:
In this chapter, we will discuss the Environment Setup of .NET Core. It is a significant redesign of the .NET Framework. To use .NET Core in your application, there are two versions you can use −
-
Visual Studio 2015
-
Visual Studio 2017 RC
Visual Studio 2015
要使用 Visual Studio 2015,您必须安装以下内容:
To use Visual Studio 2015, you must have installed the following −
-
Microsoft Visual Studio 2015 Update 3
-
Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2
Microsoft 提供了一个visual studio的免费版本,其中还包含 SQL Server,可以从 https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx 下载,而 Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2可以从 https://www.visualstudio.com/downloads/ 下载
Microsoft provides a free version of visual studio which also contains the SQL Server and can be downloaded from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx and Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2 can be downloaded from https://www.visualstudio.com/downloads/
你也可以在以下网址上查看安装指南 https://www.microsoft.com/net/core/#windowsvs2017
You can also follow the installation guidelines on the following Url https://www.microsoft.com/net/core/#windowsvs2017
Installation of Visual Studio 2015
按照以下步骤安装 Visual Studio 2015:
Follow these steps to install Visual Studio 2015 −
Step 1 - 下载完成后,运行安装程序。将显示以下对话框。
Step 1 − Once the downloading completes, then run the installer. The following dialog box will be displayed.
Step 2 - 单击 Install 以开始安装过程。
Step 2 − Click Install to start the installation process.
Step 3 - 安装完成后,您将看到以下对话框。
Step 3 − Once the installation completes, you will see the following dialog box.
Step 4 - 关闭此对话框并在需要时重新启动计算机。
Step 4 − Close this dialog and restart your computer if required.
Step 5 - 从“开始”菜单中打开 Visual Studio;你将收到以下对话框。首次加载并最终使用可能需要几分钟。
Step 5 − Open Visual Studio from the Start Menu; you will receive the following dialog box. It may take a few minutes to load and finally be used for the first time.
Step 6 - 加载后,你将看到以下屏幕。
Step 6 − Once it is loaded, you will see the following screen.
Step 7 - Visual Studio 安装完成后,关闭 Visual Studio 并启动 Microsoft .NET Core - VS 2015 Tooling Preview 2。
Step 7 − Once Visual Studio installation is finished, then close Visual Studio and launch Microsoft .NET Core - VS 2015 Tooling Preview 2.
Step 8 − 勾选复选框,然后单击安装。
Step 8 − Check the checkbox and click Install.
Step 9 - 安装完成后,你将看到以下对话框。
Step 9 − Once the installation completes, you will see the following dialog box.
你现在已可以使用 .NET Core 启动应用程序。
You are now ready to start your application using .NET Core.
Visual Studio 2017
在本教程中,我们将使用 Visual Studio 2015,但如果你想使用 Visual Studio 2017,Visual Studio 2017 RC 中包括一个 Visual Studio 的 .NET Core 工具试用版,你可以在这里查看安装指南 https://www.microsoft.com/net/core/#windowsvs2017
In this tutorial, we will be using Visual Studio 2015, but if you want to use Visual Studio 2017, an experimental release of .NET Core tools for Visual Studio is included in Visual Studio 2017 RC and you can see the installation guidelines here https://www.microsoft.com/net/core/#windowsvs2017