title: How to get Unity3D 2018 (or higher) to work with MongoDB C# driver?
body: <p>I am trying to get Unity3D work with MongoDB, but I am running into too many version compatibility issues.</p>
  
  <p>My Unity is with Framework version 4.6.1. With C# driver 2.8.0 downloaded from NuGet package manager. 
  MongoDB.Driver package has two netstandard1.5 and net452 folders. MongoDBDriver has net452 and netstandard1.5. Likewise, there are MongoDB.driver.Core.2.8.0,  Dnsclient and MongoDB.Driver.GridFS with multiple version of framework specific .dlls.
  My Unity is set to .Net 4.x (Scripting run time version) and .Net standard 2.0 API compatiblity.</p>
  
  <p>With these, the MongoDB name itself is not recognized while scripting.  </p>
  
  <p>I downloaded C# driver code from GitHub (2.8.0) and built it fresh. Copied net 1.5 version of .dlls, but it did not work either.</p>
  
  <p>I have taken .DLLs from <a href="https://drive.google.com/file/d/16cLVJi0VZpplSS8MDnRcUeVnYuvxypBm/view" rel="nofollow noreferrer">https://drive.google.com/file/d/16cLVJi0VZpplSS8MDnRcUeVnYuvxypBm/view</a>. It builds fine (with run time version .Net 3.5 and API compatibiltiy standard 2.0). But it fails with "unknown host" probably due to some compatibility issue with Dnsclient - used by MongoDB.Driver.core.</p>
  
  <p>Please let me know if someone knows the correct version combination or the process to build, specific code to modify in MongoDB C# driver code - to make it work with Unity3D.</p>
  
  <p>I have seen answer on typeload exception in link below. I also faced it. But it did not solve my problem.
  <a href="https://stackoverflow.com/questions/42151197/c-sharp-mod-dependency-throws-typeloadexception-when-instantiated">C# mod dependency throws &#39;TypeLoadException&#39; when instantiated?</a> </p>