My computer crashed when I was moving to a new version of Unity (2020.2.7f from .6f)
Now I got this error and cannot do anything
Required property ‘name’ not set (Packages/com.unity.ide.visualstudio/Editor/com.unity.ide.visualstudio.asmdef)
Deleted this file (Packages/com.unity.ide.visualstudio/Editor/com.unity.ide.visualstudio.asmdef) so Unity imported it again and I no longer have this error
I am getting the same error for these two packages:
Required property ‘name’ not set (Packages/com.unity.ide.rider/Rider/Editor/com.unity.ide.rider.asmdef)
Required property ‘name’ not set (Packages/com.unity.2d.animation/Editor/Unity.2D.Animation.Editor.asmdef)
Unfortunately, @KreizLand fix does not work for me.
When I look at the files there is nothing in them. Unity’s import process keeps creating empty .asmdef files.
I deleted both the .asmdef file and its meta file.
Cannot suggest you on that, but as a work around you can try creating a new project (may be different slightly Unity version), then importing all the packages like URP, 2D, Mobile etc. and then moving all files from the “broken project” Assets folder to the new one via Windows Explorer.
Creating a new project fixes 60% of the problems for me XD
Thanks for the suggestion. Though, my opinion is that should never be a possibility that users need to resort to.
I ended up just moving to 2023.2.10f1 and the error went away. Although, I had other headaches to plow through getting 2023 to run.
Unity needs to implement some additional error-checking and validation during the package import process so this doesn’t continue to happen. There are four threads about this issue on the forums.
- https://discussions.unity.com/t/821966
- https://discussions.unity.com/t/753702
- https://forum.unity.com/threads/req…-editor-unity-burst-editor-tests-asm.1275617/
- https://discussions.unity.com/t/832495
Stability with regard to package management is the foundation for building any sufficiently advanced software.
Unity, you can’t just solve the most common problems, you need to solve the most annoying problems as well.
Having similar issue and can’t find a solution to it yet. Tried a bunch of different things, reinstalling Unity, deleting Library folder and restarting the project, trying different versions…for the same project, I don’t have this issue on another windows PC I have.
“Required property ‘name’ not set (Packages/com.unity.searcher/Tests/Editor/Unity.Searcher.EditorTests.asmdef)”