最近换了新机器要安装环境,碰到两个问题,记录一下。
1.缺失D3Dcompiler_47.dll
提示:Failed to present D3D11 swapchain due to device reset/removed.
解决方案:从其它的正常的unity安装目录下找到Editor\Data\Tools\D3Dcompiler_47.dll,copy到报错的unity对应的目录下,即可解决。不要去网上下载,可能版本不一样,最好找其他电脑正常的unity安装目录下找。
2.缺失ucrtbase.dll
症状:unity editor 报两个错误,但是没有任何错误信息
报两个错误
在C:\Users\用户\AppData\Local\Unity\Editor目录下的Editor.log中发现
Error:
An assembly specified in the application dependencies manifest (csc.deps.json) was not found:
...