PackageCache\com.unity.test-framework@1.0.13 - CS0246 error

I’m getting this error after windows format and i uninstall and reinstall everything but even if I delete
\com.unity.test-framework@1.0.13 it still recreates the file and gives the below error and similar 374 of them.

Library\PackageCache\com.unity.test-framework@1.0.13\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?)
Library\PackageCache\com.unity.test-framework@1.0.13\UnityEngine.TestRunner\Assertions\AllocatingGCMemoryConstraint.cs(3,7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)
1 Like

Does anybody know how to solve this issue?

If all else fails, close Unity, delete Obj and Library, remove the testrunner from the manifest.json and open the project again. First import of everything will take a while.

2 Likes

Fue solucionado?

go to package manager and remove (test framework) it solved it for me
ve a package manager y remueve (test framework) amí me lo soluciono

remueve el “test framwork” en package manager ami me lo soluciono

Unity Errors: CS0246 test-framework

Library\PackageCache\com.unity.test-framework@1.1.14\UnityEngine.TestRunner\NUnitExtensions\Runner\UnityWorkItem.cs(32,33): error CS0246:The type or namespace name ‘Test’ could not be found (are you missing ausing directive or an assembly reference?)

Hola, resolví el problema de 2 maneras:

Opción 1:
->Desinstalar Unity y volverlo a instalar desde una cuenta de usuario nueva (admin).
->La cuenta anterior seguirá con el error.

Opción 2:
->No necesitas desinstalar Unity.
→ Eliminar la carpeta “Unity” de la ruta: C:\Users\Administrador\AppData\Local\Unity
→ Al volver a crear un proyecto en Unity, se vuelve a crear esta carpeta automáticamente en Local.
->Sí al crear un nuevo proyecto en Unity persisten los errores, restaura la carpeta borrada.

Esta carpeta también guardaba configuraciones anteriores de otras versiones de Unity instadas y borradas, por lo que estará muy pesada (yo tenia 6GB).

Local.- guarda las configuraciones de las aplicaciones instaladas.

En mi caso emplee las 2 opciones dado que al crear otra cuenta no podía borrar la anterior ,porque era de administrador total, por lo que me las ingenie para encontrar la segunda solución.