How to import external packages in Unity project?

Hello!

I was trying to create a CRUD-operations system inside my Unity project, but I could not find out how to import external packages to my Unity project as Microsoft.Data.Sqlite or Microsoft.EntityFrameworkCore, 'cause when I try to open NuGet Package Manager, VS tells me there is no project that supports NuGet on my Unity project:

9013483--1242730--upload_2023-5-14_19-39-46.png

Can someone tell me if it is possible, and how I could do that?

I found a way to install references to my project by right-clicking on my solution and adding references through NuGet Package Manager, but I can’t even test it. Unity tells me the reference isn’t working even existing the reference in the assembly:

Last I was aware Unity didn’t support NuGet. I think you can add support for it through the following open source asset but I’ve never tried it.

https://github.com/GlitchEnzo/NuGetForUnity

I didn’t want to install unofficial tools, I also want to learn how could I do that.
But thanks for the suggestion.

Up to you. Just be prepared to spend a ton of time getting nothing done while you sort through it all. :wink:

It’s only for learning purposes. I’ll probably use web requests for communicating with an API that integrates the database.

There is a Nuget-for-Unity (or similar name) up on Github. You have to use that one.

I uninstalled it right away because it clutters the Assets tree with some DLLs just to more easily download a package.

It was not necessary to use that one.
Simply adding the required classlib from sqlite and referencing it on my assembly it worked.

Forgot to update here last year.