title: VS 2015 to 2017 migrate to package reference failed
body: <p>I've inherited a VS-2015 C# application and would like to migrate it to VS 2017 or 2019.  It has a packages.config file with 4 packages:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;package id=&quot;AjaxControlToolkit&quot; version=&quot;15.1.4.0&quot; targetFramework=&quot;net4&quot; /&gt;
  &lt;package id=&quot;EntityFramework&quot; version=&quot;6.0.0&quot; targetFramework=&quot;net4&quot; /&gt;
  &lt;package id=&quot;Microsoft.AspNet.Providers&quot; version=&quot;2.0.0&quot; targetFramework=&quot;net4&quot; /&gt;
  &lt;package id=&quot;Microsoft.AspNet.Providers.Core&quot; version=&quot;2.0.0&quot; targetFramework=&quot;net4&quot; /&gt;
  </code></pre>
  <p>The first few lines of the project's sln file are:</p>
  <pre class="lang-none prettyprint-override"><code>Microsoft Visual Studio Solution File, Format Version 12.00
  # Visual Studio 14
  VisualStudioVersion = 14.0.25420.1
  MinimumVisualStudioVersion = 10.0.40219.1
  Project(&quot;{E24C65DC-7377-472B-9ABA-BC803B73C61A}&quot;)
  </code></pre>
  <p>I'd like to migrate the packages.config file to a csproj file.</p>
  <p>In Visual Studio 2017, I tried migrating it by right-clicking on packages.config and clicking 'Migrate packages.config to PackageReference', but it gives me an error:</p>
  <blockquote>
  <p>Operation Failed - Project is not Eligible for Migration.</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/etZJJ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/etZJJ.jpg" alt="error message" /></a></p>
  <p>I also tried this tool:
  <a href="https://github.com/hvanbakel/CsprojToVs2017" rel="noreferrer">https://github.com/hvanbakel/CsprojToVs2017</a>
  and this also fails.</p>
  <p>Is there really no way to migrate this to .csproj?</p>