在本章中,我們將討論學習需要部署和運行的各種依賴關係。這些包括使用Visual Studio開發的Windows機器上的.NET Core應用程式。
支持的Windows版本
以下版本的Windows支持.NET Core -
- 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 Studio 2015的Visual C++ Redistributable。
對於Windows 7和Windows Server 2008電腦,需要確保您的Windows安裝是最新的,並且還包括通過Windows Update安裝的修補程式KB2533623。
注意:本教學使用的是 Windows 10系統,Visual Studio 2017 社區版本
使用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 Studio 2017 RC創建的專案將始終基於MSBuild
。
上一篇:
.NET Core簡介
下一篇:
.NET Core開發環境設置