C# Compiler Broken

Hi, I’m getting an error in the Unity dashboard that my C# compiler is broken. I was using version 2019.3.0f6 to design a 2D game. None of the scripts (all written in C#) work as a result, and the game can’t run without them. I’m on Ubuntu 18.04 (Bionic) Linux kernel 5.3.0-51-generic. The specific error is

Unloading broken assembly Library/ScriptAssemblies/Assembly-CSharp.dll, this assembly can cause crashes in the runtime

Hello, I had the same error for no reason at all and I fixed:

  • Close your unity project (my version: 2019.3.15f1)
  • Make a backup of the folder Library/ScriptAssemblies/
  • Empty the folder Library/ScriptAssemblies/
  • Run again your project
    Of course, do it with caution. I’m not 100% sure what I did was right, but it worked haha :slight_smile:
    Greetings.
2 Likes

Thanks, @chrifts , I’ll try this.

And greetings.