【部署】Windows 安裝 .Net Core SDK/Runtime 及Server 2008 R2的處理

微軟文檔《.NET Core 依賴項和要求》

https://docs.microsoft.com/zh-cn/dotnet/core/install/dependencies?pivots=os-windows&tabs=netcore31

.Net Core SDK/Runtime Download

https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral

官方說.Net Core 3.1 最低系統版本是Windows Server R2
如果要在以下 Windows 版本(Windows 7/Vista/8.1/Server 2008 R2)上安裝 .NET SDK 或運行時,則需要其他依賴項:
Windows 7 SP1
Windows Vista SP 2
Windows 8.1
Windows Server 2008 R2
Windows Server 2012 R2
安裝以下組件:
Microsoft Visual C++ 2015 Redistributable 更新 3。
KB2533623
如果遇到一個以下錯誤,也需要滿足上述要求:

  • 此程序無法啓動,因爲計算機上缺少 api-ms-win-crt-runtime-l1-1-0.dll 。 嘗試重新安裝該程序以解決此問題。
  • 已找到庫 hostfxr.dll ,但未能將其從 C:<path_to_app>\hostfxr.dll 中加載 。

以下爲轉載

錯誤描述

In the process of installing Microsoft .NET Core SDK 3.0.100-preview, error ocurred and prompted "A file that is required cannot be installed because the cabinet file C:\ProgramData\Package Cache{849917F8-9A15-34CD-B971-A7478B010F70}V3.0.0.0\sfx_x64.cab has an invalid digital signature. This may indicate that the cabinet file is corrupt. "
Plus, my system environment : Windows Server 2008 R2 Enterprise Service Pack 1, no internet connection. Thanks.


缺少數字證書:

microsoft root certificate authority 2010

microsoft root certificate authority 2011

解決辦法:

一、先安裝數字證書;

找一臺正常裝了VS2015的電腦,Win+R打開運行,輸入certmgr.msc,打開證書管理界面。我們從自己電腦導出一個,我的win7 系統。

導出及導入步驟如下:

1.開始→運行→certmgr.msc

2,展開:證書→受信任的根證書頒發機構→證書

3.右擊展開菜單,所有任務→導入

4.剩下的,就是選擇你下載好的cer文件,然後無限下一步了。

二、證書安裝成功以後,安裝Microsoft Visual C++ 2015 Redistributable

下載地址:https://www.microsoft.com/en-us/download/details.aspx?id=48145

三、安裝Windows補丁

下載地址:https://support.microsoft.com/en-us/kb/2533623

四、重啓電腦,再次安裝.net core hosting和skd,安裝成功。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章