.NET核心 - 先决条件

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

支持的Windows版本

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

  • Windows 7 SP1

  • Windows 8.1

  • Windows 10

  • Windows Server 2008 R2 SP1(完整服务器或服务器核心)

  • Windows Server 2012 SP1(完整服务器或服务器)核心)

  • Windows Server 2012 R2 SP1(完整服务器或服务器核心)

  • Windows Server 2016(完整服务器,服务器核心或Nano服务器)

依赖关系

  • 如果您正在运行在Windows 10和Windows Server 2016之前的Windows版本上的.NET Core应用程序,然后它还需要Visual C ++ Redistributable.

  • 此依赖项是自动安装的您是否使用.NET Core安装程序.

  • 您需要如果要通过安装程序脚本安装.NET Core或部署自包含的.NET Core应用程序,请为Visual Studio 2015安装Visual C ++ Redistributable.

  • 对于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 RC

  • 使用Visual Studio 2015创建的项目将是project.json-默认情况下基于Visual Stu创建的项目dio 2017 RC将始终以MSBuild为基础.