在本章中,我们将讨论学习需要部署和运行的各种依赖关系。这些包括使用visual studio开发的windows机器上的.net core应用程序。
以下版本的windows支持.net core -
如果在早于windows 10和windows server 2016的windows版本上运行.net core应用程序,则还需要visual c++可再发行组件。
如果使用.net core安装程序,则会自动安装此依赖项。
如果要通过安装程序脚本安装.net core或部署自包含的.net core应用程序,则需要手动安装适用于visual studio 2015的visual c++ redistributable。
对于windows 7和windows server 2008计算机,需要确保您的windows安装是最新的,并且还包括通过windows update安装的修补程序kb2533623。
注意:本教程使用的是 windows 10系统,visual studio 2017 社区版本
要使用.net core sdk开发.net core应用程序,可以使用选择任何编辑器。
但是,如果要使用visual studio在windows上开发.net core应用程序,则可以使用以下两个版本 -
使用visual studio 2015 创建的项目默认是基于project.json
的,而使用visual studio 2017 rc创建的项目将始终基于msbuild
。