Tag Archives: The code analysis

[unity problem] what should I do if I encounter ‘Global::’ already contains a definition

Cs (7,14): error CS0101: The namespace ‘global::’ already contains a definition for’ LHtest’

Let’s first see if the code is okay. If you close UNITY,VS. Open it again, no effect.

So just copy and paste the entire correct code into another new.cs file. I’m going to run this new.cs file.

Then the problem is solved.

In another case, you create a.cs file with the same name, just change the name.