【部署】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,安装成功。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值