Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The type or namespace name 'NUnit' could not be found | Unity

i have next errors:

The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'UnitySetUpAttribute' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'UnitySetUp' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'TestAttribute' could not be found (are you missing a using directive or an assembly reference?)

More under a page:

enter image description here

Code: https://pastebin.com/5zTjwPZw

How fix it?

like image 557
huh_again Avatar asked Oct 12 '25 21:10

huh_again


1 Answers

I had the same issue in a custom package after updating to 2020.2.3f1.

In the case of packages (or if you are using assemblies), they now seem to enforce that Editor's only assemblies should be marked as such in the Platforms section of the inspector:

enter image description here

like image 197
melMass Avatar answered Oct 14 '25 11:10

melMass



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!