Unity2019創建新項目報錯

1錯誤出現過程

Unity2019安裝後,重啓電腦不幸藍屏(同時還安裝了其他多個軟件),無奈只好還原到上一次的還原點。導致Unity2019重新安裝後無法使用,創建新的項目即會報錯。

估計別人很難會遇到這麼奇葩的問題了,特此記錄

Error: Could not load signature of Packages.Rider.Editor.UnitTesting.TestEvent:.ctor due to: Could not load file or assembly 'nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. assembly:nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb type:<unknown type> member:(null) signature:<none>

Library\PackageCache\[email protected]\UnityEngine.TestRunner\Assertions\AllocatingGCMemoryConstraint.cs(2,7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)

2錯誤

原因

Unity創建Library首先會從緩存文件夾中複製,可能因爲系統還原刪除了某些緩存文件導致文件無法找到

解決方案

刪除如下緩存即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章