NuGet2Unity - Create Unity Packages from NuGet

Note

This is a Sandbox project. The content in this article is unsupported, and therefore may be out of date or not in a working state. That said, we still think it was awesome enough to include here. Enjoy!

Unity does not support importing or using NuGet packages directly. With this utility, you can download and package any NuGet package into a compatible .unitypackage for use with the Unity game engine. This utility has been used to create the Azure SDK packages here on the Sandbox.

Get the source

Requirements

Compatibility

This utility was written to support Unity 2018 and greater with its support for .NET Standard 2.0. Therefore, this packager will only work with NuGet packages that are compatible with .NET Standard 2.0. If you are using an older version of Unity and/or the .NET 4.x backend in Unity, this tool will not create a compatible package for you.

Note

While the resulting .unitypackage may import into your Unity project just fine, there's no guarantee the binaries themselves will work properly with Unity's Mono or IL2CPP based engines.

How to Use

Please see the README at the GitHub repo to learn more.