在本章中,我們將討論學習需要部署和執行的各種依賴關係。這些包括使用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
。