title: Deploying ASP.NET Core ap to Azure: dotnet restore fails
body: <p>Trying to deploy a asp.net mvc core app to Azure WebApp but it fails when trying to do <code>dotnet restore</code> with the following error</p>
  
  <pre><code>error MSB4057: The target "_GenerateRestoreGraphProjectEntry" does not exist in the project.
  </code></pre>
  
  <p>In Azure console</p>
  
  <pre><code>dotnet --version
  1.0.0-preview3-004056
  </code></pre>
  
  <p>and on my machine</p>
  
  <pre><code>dotnet --version
  1.0.0-preview4-004233
  </code></pre>
  
  <p>Perhaps I need to set the <code>global.json</code> to target a specific framework if that differs from what I have on my machine.</p>
  
  <p>(this is not part of the question, just spitting my guts out :)
  This day hasn't been a good day being a .net developer (either on Mac or Windows) since none of them work at the moment after VS 17 RC2 update on .csproj, various msbuild issues and lastly IIS Express authentication stopped working (redirect loop during sign in)</p>