title: Setup MongoDB in VNext
body: <p>I have some issues using MongoDB in the a VNext project</p>
  
  <p>Link to github with code <a href="https://github.com/Mech0z/MagicDraftStatistics/tree/NewFeatures" rel="nofollow noreferrer">https://github.com/Mech0z/MagicDraftStatistics/tree/NewFeatures</a></p>
  
  <p>If I use this package</p>
  
  <blockquote>
    <p>mongocsharpdriver</p>
  </blockquote>
  
  <p>Which is now obsolete, I get </p>
  
  <blockquote>
    <p>Warning   'MongoClientExtensions.GetServer(MongoClient)' is obsolete: 'Use the new API instead.'</p>
  </blockquote>
  
  <p>and 6 of these</p>
  
  <blockquote>
    <p>Error The type or namespace name 'MongoServer' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>And I am not sure if I need to change something in my project.json</p>
  
  <pre><code>    "dependencies": {
      "Microsoft.AspNet.Server.IIS": "1.0.0-beta1",
      "Microsoft.AspNet.Diagnostics": "1.0.0.0-beta1",
      "Microsoft.AspNet.Mvc": "6.0.0-beta1",
      "mongocsharpdriver": "2.0.0.0-beta2"
  </code></pre>
  
  <p>The wierd thing is that the GUI do not show any errors, only the Error list
  <img src="https://i.stack.imgur.com/VRMBc.png" alt="enter image description here"></p>
  
  <p>If I change to the new official driver then I cant get the same code to work, and the documentation for the driver dont seem to have changed <a href="http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-csharp-driver/" rel="nofollow noreferrer">http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-csharp-driver/</a></p>
  
  <p>But I get 
  <img src="https://i.stack.imgur.com/darUq.png" alt="enter image description here"></p>