title: How could I load MongoDB Client and start a connection inside F# Interactive?
body: <p>I'm using netcore 3.1, on macOS Catalina 10.15.6, and JetBrains Rider 2020.2 .</p>
  <p>I tried starting a MongoDB connection with the following:</p>
  <pre><code>#r &quot;../../../.nuget/packages/dnsclient/1.3.1/lib/net471/DnsClient.dll&quot;
  #r &quot;../../../.nuget/packages/mongodb.driver.core/2.11.0/lib/net452/MongoDB.Driver.Core.dll&quot;
  #r &quot;../../../.nuget/packages/mongodb.bson/2.11.0/lib/net452/MongoDB.Bson.dll&quot;
  #r &quot;../../../.nuget/packages/mongodb.driver/2.11.0/lib/net452/MongoDB.Driver.dll&quot;
  let connection = MongoDB.Driver.MongoClient &quot;someConnectionString&quot;
  
  </code></pre>
  <p>however, when executed, there's still a problem loading the DnsClient assembly, as in the error message below:</p>
  <pre><code>System.TypeInitializationException: The type initializer for 'MongoDB.Driver.Core.Misc.DnsClientWrapper' threw an exception.
   ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'DnsClient, Version=1.3.1.0, Culture=neutral, PublicKeyToken=4574bb5573c51424'. The system cannot find the file specified.
  
  File name: 'DnsClient, Version=1.3.1.0, Culture=neutral, PublicKeyToken=4574bb5573c51424'
     at MongoDB.Driver.Core.Misc.DnsClientWrapper..ctor()
     at MongoDB.Driver.Core.Misc.DnsClientWrapper..cctor()
  
  
     --- End of inner exception stack trace ---
     at MongoDB.Driver.Core.Misc.DnsClientWrapper.get_Instance()
     at MongoDB.Driver.Core.Configuration.ConnectionString..ctor(String connectionString)
     at MongoDB.Driver.MongoUrlBuilder.Parse(String url)
     at MongoDB.Driver.MongoUrlBuilder..ctor(String url)
     at MongoDB.Driver.MongoUrl..ctor(String url)
     at MongoDB.Driver.MongoClientSettings.FromConnectionString(String connectionString)
     at MongoDB.Driver.MongoClient..ctor(String connectionString)
     at &lt;StartupCode$FSI_0181&gt;.$FSI_0181.main@()
  Stopped due to error
  
  </code></pre>
  <p>How to make the MongoDB.Driver.Core refer to the right path for DnsClient?</p>