visual-studionugetvisual-studio-2017vs-community-edition

NuGet error. "Package restore failedd.Rolling back changes for ...", no matter what package I try to install


I have a problem with my NuGet, I tried everything, but it simply wouldn't work.

Whenever I create a new project, it wouldn't work, I can't install, update, delete, anything. I leave here the Nuget.config file, maybe I can get some help...

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <activePackageSource>
   <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
  </activePackageSource>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json"     protocolVersion="3" />
    <add key="telerik.com" value="https://nuget.telerik.com/nuget" />
  </packageSources>
</configuration>

Solution

  • NuGet error. “Package restore failedd.Rolling back changes for …”, no matter what package I try to install

    If I understand you correct, now you can not install the package Microsoft.AspNetCore.NodeServices to your project any more. Am I right?

    If yes, you should to notice that the author of package Microsoft.AspNetCore.NodeServices has released a new version 2.0 on August 12, 2017 (8/12/2017) (several days ago), which supports: netstandard2.0

    According to the .NET platform support, .NET Core has version 1.0 and version 2.0 and the version 1.0 corresponding .NET Standard 1.0 to 1.6, the version 2.0 corresponding .NET Standard 2.0. So install the .netstandard 2.0 package to the .net core 1.1, you will get the error "Package Microsoft.AspNetCore.NodeServices 2.0.0 is not compatible with netcoreapp1.1"

    To resolve this issue, you can install that package with the version 1.1.1 or update .net core to 2.0:

    enter image description here

    I installed that package with version 1.1.1 to the .net core 1.1, it works fine.

    Hope this can help you.