在Visual 2022中试图对sql数据库执行初始添加迁移时会出现此错误。但是,当我检查Dll路径时,它就在那里。我的电脑是一台Macbook,我使用Windows虚拟化来运行VS 2022,操作系统是Arm 64位。
Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.16\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.16]
我怎么才能解决这个问题?
发布于 2022-05-09 18:50:26
这似乎是"The library hostpolicy.dll was not found"的重复。
基于最近的一个answer,...this问题可能已经在5.0.2中得到解决。您可以考虑更新SDK版本。
https://stackoverflow.com/questions/72176745
复制相似问题