美文网首页
Unity 缺失D3Dcompiler_47.dll与ucrtb

Unity 缺失D3Dcompiler_47.dll与ucrtb

作者: 雄关漫道从头越 | 来源:发表于2021-03-01 13:15 被阅读0次

    最近换了新机器要安装环境,碰到两个问题,记录一下。

    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:
    ...
    
    解决方案:从c:\windows\System32复制ucrtbase.dll到C:\Program Files\Unity\Hub\Editor\Unity版本\Editor\Data\Tools\Roslyn下,即可解决。

    相关文章

      网友评论

          本文标题:Unity 缺失D3Dcompiler_47.dll与ucrtb

          本文链接:https://www.haomeiwen.com/subject/sfqafltx.html