What is the right way now to include Nuget packages into Unity projects?
1 Like
There are at least 2 options:
- Download nuget package from nuget.org. unpack it as zip and copy dll from lib/netstandard2.0 or lib/netstandard2.1(for unity 2021.2) to you project. same should be done for each dependency of package.
- Use UnityNuGet scoped registry which have some nuget packages converted to upm. GitHub - xoofx/UnityNuGet: Provides a service to install NuGet packages into a Unity project via the Unity Package Manager
2 Likes
There is also GitHub - GlitchEnzo/NuGetForUnity: A NuGet Package Manager for Unity. But it does not work for all packages e.g.: import of System.Collections.Immutable Cannot install System.Collections.Immutable: Install Button does nothing? · Issue #401 · GlitchEnzo/NuGetForUnity · GitHub.
2 Likes