微软文档《.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,安装成功。

本文详细介绍了在Windows 7/Vista/8.1/Server 2008 R2等旧版系统上安装.NET Core SDK或运行时所需的额外依赖项,包括Microsoft Visual C++ 2015 Redistributable更新3和KB2533623补丁,以及解决安装过程中遇到的常见错误。
7589

被折叠的 条评论
为什么被折叠?



