一、环境:Windows7
二、Unity2018.4、Unity2019
现象:打开Unity,新建一个空项目,在Console中输出几个Error,显示只有时间戳,没有内容
无法运行此空项目
三、查看Editor.log
发现有以下Log:
-----CompilerOutput:-stdout--exitcode: -2147450750--compilationhadfailure: True--outfile: Temp/Unity.TextMeshPro.dll
-----CompilerOutput:-stderr----------
Failed to load the dll from [?.], HRESULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\Program Files\Unity201918f1\Editor\Data\Tools\Roslyn\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
表示.NET Core有问题,去微软下载KB2533623补丁即可:
https://www.microsoft.com/zh-cn/download/details.aspx?id=26764
下载装好就OK了
* 此问题仅存在Windows7中,Windows10无此问题