title: Can't uninstall/reinstall NuGet package
body: <p>I've set up my project with Visual Studio Express 2012, added some C# code, and successfully compiled/deployed to emulator. At some point I decided I want to do something with JSON, and I found that I should use the Json.NET framework, which is <a href="http://www.nuget.org/packages/Newtonsoft.Json" rel="noreferrer">available as a NuGet package</a>. I have added this framework successfully using the command <code>Install-Package Newtonsoft.Json</code>.</p>
  
  <p>I tried to install an update which MSVC offered two days ago, and the installation failed, leaving me unable to open my project again. Reinstalling MSVC didn't help, so I ended up restoring Windows to a previous state. I was able to open my project again, and I wanted to reinstall the NuGet package (not knowing it is installed inside the project, <em>not</em> MSVC). It gave me errors upon installing, so I tried to uninstall everything from package console.</p>
  
  <p>Long story short:  </p>
  
  <ul>
  <li>Nuget package console says "no packages installed" when <code>Get-Package</code>  </li>
  <li>Running <code>Install-Package Newtonsoft.Json</code> again gives me the error 
  
  <blockquote>
    <p>Newtonsoft.Json 5.0.6 could not be installed. You try to install this package in a project referencing "WindowsPhone,Version=v8.0", the package however does not contain assemblies compatible with this framework</p>
  </blockquote></li>
  <li>The "Manage NuGet" packages dialog shows <strong>no packages</strong> under "installed", however in the online package, the json package is listed and marked as installed (so I cannot try to install it)</li>
  </ul>
  
  <p>Now I'm completely lost. I don't know how to install the package properly, nor how to remove it properly. Is my project file broken? How can I repair it?</p>
  
  <hr>
  
  <p><strong>[edit]</strong>
  Now it gets even more confusing. I've just updated the NuGet package manager (not MSVC though), and tried to reinstall Json.NET.</p>
  
  <ul>
  <li>In the dialog it's still not shown under "installed"</li>
  <li>In the online packages list it is no more marked as installed, but clicking "Install" just does <strong>nothing</strong></li>
  <li><p><code>Get-Package</code> in the console shows the package as installed  </p>
  
  <pre><code>PM&gt; Get-Package
  
  Id                             Version              Description/Release Notes                                                                                                                                                                                            
  --                             -------              -------------------------                                                                                                                                                                                            
  Newtonsoft.Json                5.0.6                Json.NET is a popular high-performance JSON framework for .NET
  </code></pre></li>
  <li><p>Trying to uninstall with `Uninstall-Package Newtonsoft.Json" gives "The Package 'Newtonsoft.Json' could not be found"</p></li>
  <li>In my project folder I can see a "Newtonsoft.Json.5.0.6" subfolder in the <code>packages</code> directory</li>
  </ul>
  
  <p>Should I just start over from scratch and create a new project? :/</p>
  
  <hr>
  
  <p>Contents of packages.dgml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;DirectedGraph GraphDirection="LeftToRight" xmlns="http://schemas.microsoft.com/vs/2009/dgml"&gt;
    &lt;Nodes /&gt;
    &lt;Links /&gt;
    &lt;Categories&gt;
      &lt;Category Id="Projekt" /&gt;
      &lt;Category Id="Paket" /&gt;
    &lt;/Categories&gt;
    &lt;Styles&gt;
      &lt;Style TargetType="Node" GroupLabel="Projekt" ValueLabel="True"&gt;
        &lt;Condition Expression="HasCategory('Projekt')" /&gt;
        &lt;Setter Property="Background" Value="Blue" /&gt;
      &lt;/Style&gt;
    &lt;/Styles&gt;
  &lt;/DirectedGraph&gt;
  </code></pre>