@BorisMongeau @DanielTG Great talk! I was there and I really like it.
My problem
I manage the company’s code base and we have many packages in Verdaccio that developers install internally.
Have you considered how to resolve Nuget packages? In my case we use many standard “Microsoft.Extensions.*” libraries on which several packages depend and we have been using successfully on many platforms (windows, macos, webgl, android, ios…):
(Note: It has nothing to do with ASP NET Core, don’t be afraid)
I can’t put the assemblies in all of the packages because there would be duplicate dll conflicts.
Think that since Unity is compatible with .NET Standard 2.0 opens a world of possibilities when using third-party libraries published in nuget.
But that in turn opens up a world of problems when the time comes when packages can be published in the Asset Store (or internally) in upm format.
Apart from working for a company I am a publisher of the Asset Store in my spare time so I know what it is.
My current solution
I have implemented in a console application in .NET Core the resolution of dependencies using the Nuget API:
Since the Nuget cli does not work with the new format “”:
So I had to implement it myself.
Here’s how it works. Unity creates a file “Assets/Packages.xml” where the dependencies are put. With the API of AssetPostProcessor look changes on the file and if there are force a “restore” of the packages.
My solution “works” but it is not a good solution because you have to know beforehand the nuget dependencies that the UPM packages are going to have and solve it before importing them.
The ideal solution
The ideal thing would be to have it integrated in Unity taking advantage of the work of your colleague @xoofx that published in github: GitHub - xoofx/UnityNuGet: Provides a service to install NuGet packages into a Unity project via the Unity Package Manager
That way everything would be “connected” and in the upm system.
You have me available for whatever you want, I can detail my solution better if you also want although the @xoofx seems to me the most correct to be “connected” with upm.