Unity2019.2.0f1 Script Compiler: Failed to initialize CoreCLR

When I open Unity2019.2.0f1.The editor has two errors, none of which have any information. Open the Editor Log to see this.

-----CompilerOutput:-stdout--exitcode: -2147450743--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
-----CompilerOutput:-stderr----------
Failed to initialize CoreCLR, HRESULT: 0x80131534

-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll

I do not know why the CoreCLR initialization failed.HRESULT: 0x80131534 what does that mean?

I used VS2019 + unity2019.2.0f1 + dotnet-sdk-2.2.401

Please help~

Well, i hit this issue recently, and somehow randomly found that the unity shortcut on my desktop had the compatibility setting ticked for Windows 8. (Right click, properties and compatibility tab).
I turned it off and it started working.

(No idea if that is the correct fix, it seemed to work for me.)

I don’t know why.
I changed the installation location and installed Unity2018.4.5, but it did not appear again.

I’m having a similar problem on a machine today, reinstalled Unity a few times, still can’t resolve it!! super annoying:


-----CompilerOutput:-stdout--exitcode: -2147450743--compilationhadfailure: True--outfile: Temp/UnityEngine.UI.dll
-----CompilerOutput:-stderr----------
Failed to initialize CoreCLR, HRESULT: 0x80131534

-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/UnityEngine.UI.dll

I can’t compile my game because of this. Does anybody have any ideas at all?