使用Rider加载Unity解决方案会破坏项目

时间:2019-06-13 14:31:12

标签: c# unity3d rider

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

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

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

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

我在Editor.log中找到了它:

-----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中也会发生此问题

1 个答案:

答案 0 :(得分:0)

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