Unity can't find MongoClient


I’ve imported the libraries for MongoDB from NuGet in Visual Studio 2019, on Mac. The namespaces and MongoClient are recognised in VS 2019, but Unity errors saying namespace and MongoClient can’t be found. I’m at a complete loss. I’ve been struggling for days on this.


OK, so I solved my own issue. I needed to include the MongoDB drivers in a folder called ‘Plugins’ inside of Unity, ‘Assets’ folder. Hmm did I miss this somewhere in the official tutorials on this site? Also, it’s not very ideal how I went about obtaining the DLLs, browising the package folders inside of the VS 2019 project files…? Thanks.


1 Like

Did you manage to build your application without issues?