Can not find runtime target for framework .NETCoreApp=v1 compatible with one of the target runtimes
<p>I am trying to migrate an Asp.Net Core RC1 project to RC2 and have been following this <a href="http://dotnet.github.io/docs/core-concepts/dnx-migration.html" rel="noreferrer">documentation</a> and have also followed the <a href="https://docs.asp.net/en/latest/migration/rc1-to-rc2.html" rel="noreferrer">instructions</a> for DNX migration to .NET CLI.</p>

<p>I am getting the following error when I try <code>dotnet run</code>:</p>

<blockquote>
  <p>Can not find runtime target for framework '.NETCoreAPP, Version=v1.0'
  compatible with one of the target runtimes: 'win10-x64, win81-x64,
  win8-x64, win7-x64'. Possible causes:</p>
  
  <ol>
  <li>The project has not been restored or restore failed -run 'dotnet restore'</li>
  <li>The project does not list one of 'win10-x64, win81-x64, win7-x64' in the 'runtimes'</li>
  </ol>
</blockquote>

<p>I have run <code>dotnet restore</code> and it seems to have completed successfully.</p>

<p>I have updated all the relevant packages to RC2.</p>