title: "unknown keyword platform" when restoring in Visual Studio
body: <p>I'm converting a project from .NET Core RC1 to RC2. I've installed the  Visual Studio tooling preview package and updated the VS Nuget plugin to the latest version.</p>
  
  <p>This is a test project, so I need to add <code>Microsoft.NETCore.App</code> to my <code>project.json</code> per the <a href="http://dotnet.github.io/docs/core-concepts/libraries/libraries-with-cli.html#how-to-test-libraries-on-net-core" rel="noreferrer">library guide</a>. It looks like this:</p>
  
  <pre><code>{
    "dependencies": {
      "dotnet-test-xunit": "1.0.0-rc2-build10015",
      "FluentAssertions": "4.2.1",
      "Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-final",
      "Microsoft.NETCore.App": {
        "type": "platform",
        "version": "1.0.0-rc2-3002702"
      },
      "xunit": "2.1.0"
    },
    "frameworks": {
      "netcoreapp1.0": {
        "imports": [ "dotnet", "portable-net45+win8" ]
      }
    },
    "testRunner": "xunit",
  }
  </code></pre>
  
  <p>The project restores and builds on the command line (<code>dotnet restore/build</code>). However, when Visual Studio tries to restore packages, I get this error:</p>
  
  <pre><code>PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
  C:\Users\Nate\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-20221\bin\dnx.exe "C:\Users\Nate\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-20221\bin\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" restore "C:\Users\Nate\Documents\stormpath-dotnet-config\test\Stormpath.Configuration.Test"
  Microsoft .NET Development Utility Clr-x86-1.0.0-rc2-20221
    CACHE https://api.nuget.org/v3/index.json
  Restoring packages for C:\Users\Nate\Documents\stormpath-dotnet-config\test\Stormpath.Configuration.Test\project.json
  ----------
  C:\Users\Nate\Documents\stormpath-dotnet-config\test\Stormpath.Configuration.Test\project.json(0,0): Error: Microsoft.Dnx.Runtime.FileFormatException: unknown keyword platform ---&gt; System.InvalidOperationException: unknown keyword platform
     at Microsoft.Dnx.Runtime.LibraryDependencyType.Parse(String keyword)
     at Microsoft.Dnx.Runtime.ProjectReader.PopulateDependencies(String projectPath, IList`1 results, JsonObject settings, String propertyName, Boolean isGacOrFrameworkReference)
     at Microsoft.Dnx.Runtime.ProjectReader.ReadProject(Stream stream, String projectName, String projectPath, ICollection`1 diagnostics)
     at Microsoft.Dnx.Runtime.Project.TryGetProject(String path, Project&amp; project, ICollection`1 diagnostics)
     --- End of inner exception stack trace ---
     at Microsoft.Dnx.Runtime.Project.TryGetProject(String path, Project&amp; project, ICollection`1 diagnostics)
     at Microsoft.Dnx.Tooling.RestoreCommand.&lt;RestoreForProject&gt;d__69.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.Dnx.Tooling.RestoreCommand.&lt;&gt;c__DisplayClass68_0.&lt;&lt;Execute&gt;b__2&gt;d.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
     at Microsoft.Dnx.Tooling.RestoreCommand.&lt;Execute&gt;d__68.MoveNext()
  ----------
  Restore failed
  unknown keyword platform
  NuGet Config files used:
      C:\ProgramData\NuGet\Config\Microsoft.VisualStudio.Offline.config
      C:\Users\Nate\AppData\Roaming\NuGet\nuget.config
  Feeds used:
      https://api.nuget.org/v3-flatcontainer/
      C:\Users\Nate\Documents\LocalNuget
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
  </code></pre>
  
  <p>Obviously the <code>"type": "platform"</code> property is throwing it off, but shouldn't this work with the latest tooling release?</p>