开发学院

您的位置:首页>教程>正文

教程正文

.NET Core的先决条件

  在本章中,我们将讨论部署和运行所需的各种依赖关系。这些包括使用Visual Studio开发的Windows机器上的.NET Core应用程序。

支持的windows版本

  .NET Core支持以下版本的Windows中:

  • Windows 7 SP1

  • Windows 8.1

  • Windows 10

  • Windows Server 2008 R2 SP1 (Full Server or Server Core)

  • Windows Server 2012 SP1 (Full Server or Server Core)

  • Windows Server 2012 R2 SP1 (Full Server or Server Core)

  • Windows Server 2016 (Full Server, Server Core or Nano Server)

依赖

  如果您在Windows 10和Windows Server 2016之前的Windows版本上运行.NET Core应用程序,那么它也需要Visual C++可再发行。

  如果您使用.NET Core安装程序,此依赖关系将自动为您安装。

  如果要通过安装程序脚本安装.NET Core或部署自包含的.NET Core应用程序,则需要手动安装Visual C++可再发行的Visual Studio 2015。

  对于Windows 7和Windows Server 2008计算机,您需要确保您的Windows安装是最新的,并且还包括通过Windows Update安装的修补程序KB2533623。

Visual Studio的先决条件

  要使用.NET Core SDK开发.NET Core应用程序,您可以使用您选择的任何编辑器。

  但是,如果您想使用Visual Studio在Windows上开发.NET Core应用程序,可以使用以下两个版本

  •   Visual Studio 2015

  •   Visual Studio 2017

  使用Visual Studio 2015创建的项目默认情况下将是基于project.json,而使用Visual Studio 2017 RC创建的项目将始终基于MSBuild。