A package reference is the name of a package, usually alongside a version. It can be used to resolve a local or remote package.
Example: package-name@version
The version may be one of the following options:
This resolves the latest published version, including pre-releases.
Example: com.my.package@latest
This is identical to using the latest
tag.
Example: com.my.package
The specific given version.
Example: [email protected]
This resolves the latest published stable version, excluding pre-releases
Example: com.my.package@stable
A http
or git
based url to a git repository. Checkout the Unity documentation on the topic.
Examples (taken from the Unity documentation):
com.my.package@https://github.example.com/myuser/myrepository1.git
com.my.package@[email protected]/myuser/myrepository2.git
A file
based url to a local package. Check out the Unity documentation on the topic.
Example (Taken from Unity documentation): com.my.package@file:../github/my_package_folder