Hello Unity Forum.
I created a new standard 2D project (in Unity 2022.3.2f1). Before the project was even done being created, it prompted me to enter safe mode because of a compilation error.
Here’s the full error message:
System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImage(Disposable`1 stream, String file_name)
at…
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImage(Disposable`1 stream, String file_name)
at…
Click to expand…
Brand-New Project throws “System.BadImageFormatException”
Unity Forum