Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity: Are you missing an assembly reference?

Tags:

unity3d

There's this unity tutorial called space shooter and for some reason i am getting the following error:

AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/Editor/Sources/Services/Upm/UpmBaseOperation.cs(34,43): 
error CS1061: Type 'UnityEditor.PackageManager.PackageInfo' does not contain a definition for 'author' and no extension method 'author' of type 'UnityEditor.PackageManager.PackageInfo' could be found.
Are you missing an assembly reference?

Its just the beginning of the project and i haven't even written any scripts. I have no idea what this means.

like image 234
Chhaganlaal Avatar asked Dec 18 '18 01:12

Chhaganlaal


People also ask

How do I add assembly reference in Unity?

In the Project window, select the folder in which you want to place the Assembly Definition. See in Glossary > Create > Assembly Definition. Select the new Assembly Definition you created. Set the properties in the Inspector window, as necessary.

What is an assembly definition reference Unity?

An Assembly Definition groups code into an Assembly. An Assembly might be based on origin, purpose, and/or whatever criteria best suits your project. An Assembly Definition can also depend on the platform. By default, all code in a Unity project belongs to a single Assembly, called Assembly-CSharp.


1 Answers

I just encountered this myself, and it comes from erroneous settings in "manifest.json" file, found inside /Packages/

Delete (or move) the manifest file, even while Unity is running, and Unity will rebuild it. The errors then go away.

like image 92
LilGames Avatar answered Oct 14 '22 06:10

LilGames