关于C#:使用Rider加载Unity解决方案会破坏项目

Loading Unity solution with Rider corrupts the project

每当我在Rider中加载现有的Unity项目时,Unity都不会让我运行/构建它,而是在控制台中返回空白错误。

我尝试重新安装Unity并删除Rider的配置文件。

我也相信该错误可能是由于Unity套件" Rider Editor"无法正常工作引起的。

同样,在重新加载Unity项目后,与游戏对象关联的所有Unity脚本均无法加载。

我在Editor.log中找到了这个:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-----CompilerOutput:-stdout--exitcode: 134--compilationhadfailure: True--outfile: Temp/UnityEngine.SpatialTracking.dll
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.

-----CompilerOutput:-stderr----------
/home/rotolonico/Unity/Hub/Editor/2019.3.0a5/Editor/Data/Tools/RoslynScripts/unity_csc.sh: line 89: 10933 Aborted                 (core dumped)"/home/rotolonico/Unity/Hub/Editor/2019.3.0a5/Editor/Data/Tools/RoslynScripts/../../Tools/Roslyn/csc" /shared /noconfig @Temp/UnityTempFile-35071e8ef485631d5b4eb3ee7f34ec61
-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/UnityEngine.SpatialTracking.dll



Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.


[ScriptCompilation] Recompiling all scripts because: Reload of assemblies failed
- Starting compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
- Starting compile Library/ScriptAssemblies/Unity.ugui.dll
- Starting compile Library/ScriptAssemblies/com.unity.multiplayer-hlapi.Runtime.dll
- Starting compile Library/ScriptAssemblies/Unity.Timeline.dll

我在用:
Unity 2019.3.0a5,
骑士2019.1,
我的操作系统是Fedora 30 Thirty(x86-64)

在Unity 2019.2和2019.1中也会发生此问题


我不确定这是否是巧合,但是当我从4GB的RAM升级到16GB时,似乎不再发生该错误。 这似乎是完全无关的,但是当我由于一个存储库故障而被迫降级到4GB RAM时,错误本身就开始发生。