title: Nuget says packages are missing, Package Manager Restore says all packages are installed
body: <p>What have I done to my Solution!? D:</p>
  <p>I'm not able to install anything from nuget anymore. At first I kept getting an error saying:</p>
  <blockquote>
  <p>An error occurred while trying to restore packages. A root element is missing.</p>
  </blockquote>
  <p>So pursuant to <a href="https://stackoverflow.com/a/40764387">this answer on another question</a>, I renamed all my packages folders to <code>packages-old</code>, started VS again and attempted a restore. The error persists and I still can't install any nuget packages.</p>
  <p>Error List:</p>
  <blockquote>
  <p>Severity    Code    Description    Project    File    Line    Suppression State</p>
  <p>Error        This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see <a href="http://go.microsoft.com/fwlink/?LinkID=322105" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkID=322105</a>. The missing file is ..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props.</p>
  </blockquote>
  <p>Package Manager Restore:</p>
  <blockquote>
  <p>All packages are already installed and there is nothing to restore.<br />
  Time Elapsed: 00:00:00.0644890<br />
  ========== Finished ==========</p>
  </blockquote>
  <p>Additionally, there's a bunch of warnings most of which say the referenced component couldn't be found:</p>
  <blockquote>
  <p>WarningIDE0006Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</p>
  <p>Warning The referenced component 'System' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.Web.Infrastructure' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Services' could not be found.</p>
  <p>Warning The referenced component 'System.Configuration' could not be found.</p>
  <p>Warning The referenced component 'System.Web.ApplicationServices' could not be found.</p>
  <p>Warning The referenced component 'Antlr3.Runtime' could not be found.</p>
  <p>Warning The referenced component 'System.Web.WebPages.Razor' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.Web' could not be found.</p>
  <p>Warning The referenced component 'System.Web' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.DependencyCollector' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.PerfCounterCollector' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.ApplicationInsights' could not be found.</p>
  <p>Warning The referenced component 'System.ComponentModel.DataAnnotations' could not be found.</p>
  <p>Warning The referenced component 'System.Web.DynamicData' could not be found.</p>
  <p>Warning The referenced component 'Newtonsoft.Json' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Routing' could not be found.</p>
  <p>Warning The referenced component 'System.EnterpriseServices' could not be found.</p>
  <p>Warning The referenced component 'System.Xml' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Abstractions' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Mvc' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Optimization' could not be found.</p>
  <p>Warning The referenced component 'System.Net.Http' could not be found.</p>
  <p>Warning The referenced component 'System.Net.Http.WebRequest' could not be found.</p>
  <p>Warning The referenced component 'System.Web.WebPages.Deployment' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Helpers' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Razor' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.ServerTelemetryChannel' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.Agent.Intercept' could not be found.</p>
  <p>Warning The referenced component 'System.Xml.Linq' could not be found.</p>
  <p>Warning The referenced component 'WebGrease' could not be found.</p>
  <p>Warning The referenced component 'System.Drawing' could not be found.</p>
  <p>Warning The referenced component 'System.Core' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.CSharp' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Extensions' could not be found.</p>
  <p>Warning The referenced component 'Microsoft.AI.WindowsServer' could not be found.</p>
  <p>Warning The referenced component 'System.Data.DataSetExtensions' could not be found.</p>
  <p>Warning The referenced component 'System.Web.Entity' could not be found.</p>
  <p>Warning The referenced component 'System.Web.WebPages' could not be found.</p>
  <p>Warning The referenced component 'System.Data' could not be found.</p>
  </blockquote>