https://github.com/openupm/com.example.nuget-consumer
An example package that depends on other org.nuget packages
https://github.com/openupm/com.example.nuget-consumer
Last synced: about 1 year ago
JSON representation
An example package that depends on other org.nuget packages
- Host: GitHub
- URL: https://github.com/openupm/com.example.nuget-consumer
- Owner: openupm
- Created: 2021-05-03T08:15:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T10:05:35.000Z (over 1 year ago)
- Last Synced: 2025-06-12T18:22:25.238Z (about 1 year ago)
- Size: 6.84 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo UnityNuGet Registry Uplinks
`org.nuget.system.memory` is a package (with dependencies) that hosting on [UnityNuGet](https://github.com/xoofx/UnityNuGet) registry https://unitynuget-registry.openupm.com/
`com.example.nuget-consumer` is an example package that depends on `org.nuget.system.memory`.
OpenUPM uplinks to the UnityNuGet registry, so you can install all `org.nuget` dependencies directly via OpenUPM registry.

Install `com.example.nuget-consumer` via openupm-cli
```sh
$ openupm install com.example.nuget-consumer
notice manifest added com.example.nuget-consumer@1.0.1
notice please open Unity project to apply changes
```
`Packages/manifest.json` changes:
```
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.example.nuget-consumer",
"org.nuget.system.buffers",
"org.nuget.system.memory",
"org.nuget.system.numerics.vectors",
"org.nuget.system.runtime.compilerservices.unsafe"
]
}
```
Notice that `org.nuget.system.memory` was added to scopes along with its dependencies, to help Unity finds all dependencies.
If Unty prompts
```
Assembly 'Packages/org.nuget.system.memory/System.Memory.dll' will not be loaded due to errors:
System.Memory references strong named System.Buffers Assembly references: 4.0.2.0 Found in project: 4.0.3.0.
Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"
```
Follow the instruction to disable Player Settings' `Assembly Version Validation`.

For some uplink integration limitations the `org.nuget.system.memory` will be invisible in PacMan's "My Registries" section, but visible in the "In Project" section.

