title: Failed building or restoring ASP.NET Core project
body: <p>I downloaded the Download <strong>".NET Core 1.0.1 tools Preview 2"</strong> from this link:
  <a href="https://www.microsoft.com/net/core#windowsvs2015" rel="nofollow noreferrer">https://www.microsoft.com/net/core#windowsvs2015</a></p>
  
  <p>When I start my visual studio, I try to clean and rebuild the project that I created (ASP.NET Core).</p>
  
  <p>When I rebuild, I get alot of errors from ASPNETCore libraries and extensions, so the next step was to try to call dotnet restore through the Package Manager Console.</p>
  
  <p>However I get this error:</p>
  
  <blockquote>
    <p>"error: Error reading JToken from JsonReader. Path '', line 1,
    position 1454."</p>
  </blockquote>
  
  <p>Any idea what I have forgotten?</p>
  
  <p>Steps to my problem:</p>
  
  <ol>
  <li>Install DotNetCore</li>
  <li>start Visual Studio and create ASP.NET Core Web Application (.NET Core)</li>
  <li>Clean and rebuild after the project has been created</li>
  <li>If it doesn't work, go to package manager console and type in "dotnet restore"</li>
  </ol>
  
  <p>Snippet of my problem :(</p>
  
  <p><a href="https://i.stack.imgur.com/4h6lP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4h6lP.jpg" alt="enter image description here"></a></p>
  
  <p>project.json file:</p>
  
  <pre><code>{
    "dependencies": {
      "Microsoft.ApplicationInsights.AspNetCore": "1.0.0",
      "Microsoft.AspNetCore.Diagnostics": "1.0.0",
      "Microsoft.AspNetCore.Mvc": "1.0.1",
      "Microsoft.AspNetCore.Razor.Tools": {
        "version": "1.0.0-preview2-final",
        "type": "build"
      },
      "Microsoft.AspNetCore.Routing": "1.0.1",
      "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
      "Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
      "Microsoft.AspNetCore.StaticFiles": "1.0.0",
      "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
      "Microsoft.Extensions.Configuration.Json": "1.0.0",
      "Microsoft.Extensions.Logging": "1.0.0",
      "Microsoft.Extensions.Logging.Console": "1.0.0",
      "Microsoft.Extensions.Logging.Debug": "1.0.0",
      "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
      "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0"
    },
  
    "tools": {
      "BundlerMinifier.Core": "2.0.238",
      "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
      "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
    },
  
    "frameworks": {
      "net46": { }
    },
  
    "buildOptions": {
      "emitEntryPoint": true,
      "preserveCompilationContext": true
    },
  
    "publishOptions": {
      "include": [
        "wwwroot",
        "**/*.cshtml",
        "appsettings.json",
        "web.config"
      ]
    },
  
    "scripts": {
      "prepublish": [ "bower install", "dotnet bundle" ],
      "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
    }
  }
  </code></pre>