有可能在Windows 7 Embedded上运行.NET core 3.1应用程序吗



我正试图在Windows 7嵌入式虚拟机上运行.NET Core 3.1 WPF应用程序。遗憾的是,Windows 7 Embedded并不正式支持.NET Core。有没有变通办法让它发挥作用?

我已经尝试将该应用程序作为一个独立的包和一个单独的文件(也是独立的(发布,希望这将包括所有必要的依赖项。但不幸的是,这并没有奏效。事件查看器向我显示了此异常:

Message: Failed to load the dll from (path)hostfxr.dll, HRESULT:0x80070057
The library hostfxr.dll was found, but loading it from (path)hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
(download link)

当然,该安装程序不适用于嵌入式Windows7("此更新不适用于您的计算机"(。

有没有一种方法可以手动包含所有必要的依赖项,以使其加载?

在从裸机Windows 7安装开始时,我遇到了关于hostfxr.dll的相同错误。微软列出了一个特定的安全补丁,在我安装后修复了错误。

KB3063858

64位:https://www.microsoft.com/download/details.aspx?id=47442
32位:https://www.microsoft.com/download/details.aspx?id=47409

.Net 5/核心依赖项
https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net50#dependencies

.Net 5/核心相关性

相关内容

最新更新