title: Visual studio 2012 project - Not able to load 'Newtonsoft.Json'
body: <p>On running a windows phone project in VS 2012, I was getting this error:</p>
  
  <pre><code>    {System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
  File name: 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
     at MobileConnection.SSCClient.SSCConnection.GetHostNameAndPort()
     at MobileConnection.SSCClient.SSCConnection.InitializeSSCConnection(Boolean runningState)}
  </code></pre>
  
  <p>The corresponding entries in .csproj file is:</p>
  
  <pre><code>    &lt;Reference Include="Newtonsoft.Json"&gt;
    &lt;HintPath&gt;..\packages\Newtonsoft.Json.4.5.11\lib\sl4-windowsphone71\Newtonsoft.Json.dll&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>And, in packages.config:</p>
  
  <pre><code>  &lt;package id="Newtonsoft.Json" version="4.5.11" targetFramework="wp80" /&gt;
  </code></pre>
  
  <p>I debugged it for a while, re-installed the newtonsoft.json package through nuget.<br>
  <strong>But the solution that worked for me is setting the 'private' property to 'True'.</strong>  </p>
  
  <p>Updated entry in .csproj file:</p>
  
  <pre><code>&lt;Reference Include="Newtonsoft.Json"&gt;
    &lt;HintPath&gt;..\packages\Newtonsoft.Json.4.5.11\lib\sl4-windowsphone71\Newtonsoft.Json.dll&lt;/HintPath&gt;
     &lt;Private&gt;True&lt;/Private&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>I am not able to understand how it worked or what the issue was. The description on msdn documentation didn't help much either <a href="http://msdn.microsoft.com/en-us/library/vstudio/bb629388.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/vstudio/bb629388.aspx</a>.</p>