如何修复错误 "Failed to load hostfxr.dll" 但找到 (0x80070057)?
How to fix the error "Failed to load hostfxr.dll" but is found (0x80070057)?
我创建了一个 .net core 3.1 项目,并将其发布为自包含项目。当我在装有 .net framework 4.5 的盒子上尝试 运行 这个时,我得到了这个错误
Failed to load the dll from [C:\XXXX\hostfxr.dll], HRE
SULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\xxxxx\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306
我的印象是自包含可以解决任何这些依赖关系?有什么办法可以解决这个问题,而不必安装新的 .net Framework/Core ?
Visual Studio 似乎有问题。关闭VS,删除bin和obj文件夹,然后启动VS才解决这个问题。
我创建了一个 .net core 3.1 项目,并将其发布为自包含项目。当我在装有 .net framework 4.5 的盒子上尝试 运行 这个时,我得到了这个错误
Failed to load the dll from [C:\XXXX\hostfxr.dll], HRE SULT: 0x80070057 The library hostfxr.dll was found, but loading it from C:\xxxxx\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306
我的印象是自包含可以解决任何这些依赖关系?有什么办法可以解决这个问题,而不必安装新的 .net Framework/Core ?
Visual Studio 似乎有问题。关闭VS,删除bin和obj文件夹,然后启动VS才解决这个问题。