Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Dnu restore problems

$
0
0

Hi, I've got errors after executing dnu restore:

C:\Users\michalu.MEDIA-PRESS\UWPNext\app\UWPNext>dnu restore
Microsoft .NET Development Utility Clr-x86-1.0.0-rc2-20221

  GET https://www.nuget.org/api/v2/
  OK https://www.nuget.org/api/v2/ 780ms
Restoring packages for C:\Users\michalu.MEDIA-PRESS\UWPNext\app\UWPNext\src\UWPNext\project.json
----------
C:\Users\michalu.MEDIA-PRESS\UWPNext\app\UWPNext\src\UWPNext\project.json(0,0): Error: Microsoft.Dnx.Runtime.FileFormatException: unknown keyword platform ---> 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& project, ICollection`1 diagnostics)
   --- End of inner exception stack trace ---
   at Microsoft.Dnx.Runtime.Project.TryGetProject(String path, Project& project, ICollection`1 diagnostics)
   at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>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.<>c__DisplayClass68_0.<<Execute>b__2>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.<Execute>d__68.MoveNext()
----------
Restore failed
unknown keyword platform

NuGet Config files used:
    C:\ProgramData\NuGet\Config\Microsoft.VisualStudio.Offline.config
    C:\Users\michalu.MEDIA-PRESS\AppData\Roaming\NuGet\nuget.config

Feeds used:
    https://www.nuget.org/api/v2/
    C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

C:\Users\michalu.MEDIA-PRESS\UWPNext\app\UWPNext>dotnet restore
log  : Restoring packages for C:\Users\michalu.MEDIA-PRESS\UWPNext\app\UWPNext\src\UWPNext\project.json...
error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error:   An error occurred while sending the request.
error:   The server returned an invalid or unrecognized response

Here is a link to dropbox how it looks in VS:

https://www.dropbox.com/s/72kl0xzjsmm9yud/Capture.PNG?dl=0


Viewing all articles
Browse latest Browse all 9386

Trending Articles