Home: "Package restore failed. Rolling back package changes..." appears in the error list

Created on 17 Jul 2015  Â·  24Comments  Â·  Source: NuGet/Home

This error appears in the error list and it's frustrating that I can't get rid of it until after I build again.

Bug

Most helpful comment

Having this issue for EntityFramework VS2017, just stumbled over this thread through Google. Is there a workaround for this?
exception

All 24 comments

Could we use an infobar instead?

We'll take a look at how this could be improved. As for the infobar, I'm not sure that would be noticeable enough, and the user does need to know when the install failed.

@rchande I just closed the bugs that asks for removing the error. I think it should not be removed. We are tracking elsewhere improving the error messages.

@RanjiniM can you please verify we show a more useful message here?

Clearing out the milestone. We can't remove the error messages from error list yet until we find another way to surface those. In error cases the messages are explanatory.

i have this problem too.
idont know how to fix this :((

When I install signalR nugget package for a UWP app, I have this problem too.How Can I fix this?

We need more details. Can you paste the contents in your output window?

I have fixed it, Thanks ,I just not select the SignalR.Client package.

I'm having same problem with installation of Nuget Packages:
Microsoft.EntityFrameworkCore.SqlServer
EntityFrameworkCore SQL Server Install errors.txt

Trying to install either from the console or from the user interface in VS 2015. Error output is attached since it is quite extensive.

Having this issue in VS 2017 for Microsoft.Owin.Host.SystemWeb

Having this issue for EntityFramework VS2017, just stumbled over this thread through Google. Is there a workaround for this?
exception

ok, tried with Package Manager Console, and got

"install-package : One or more packages are incompatible with .NETCoreApp,Version=v1.1."

well, atleast I have a ballpark

ok folks, for future reference, got Microsoft.EntityFrameworkCore installed instead with no issues

Hello guys, I got the issue when I tried adding "Microsoft.AspNet.Identity.EntityFramework" to a .NET Standard Class Library Project. But when I added it to a .NET Framework Class Library Project it worked successfully without a problem.

@sameerfairgoogl how did you install it ?

Hello guys,
If you have problem with an entityframework package just try to install latest stable version from Nuget. Prerelease versions may cause trouble.

@m-henderson installed the nuget package for it, most likely this one if I remember correctly https://www.nuget.org/packages/Microsoft.EntityFrameworkCore

If you're using .NET Standard, try installing the Microsoft.NETCore.Portable.Compatibility package, and/or adding the PackageTargetFallback element to your _csproj_ file, example:

<PropertyGroup>
  <TargetFramework>netstandard1.4</TargetFramework>
  <PackageTargetFallback>$(PackageTargetFallback);portable-win+net45+wp8+win81+wpa8</PackageTargetFallback>
</PropertyGroup>

I have a problem when install Microsoft.Azure.NotificationHubs. How can I fix it

So the summary is that we get this message when installing previous .net packages on .net Core projects, and this is a matter of incompatibility.
If your package has a corresponding one in .net Core, then you're lucky. Go for it!

Yes

On 17 Aug 2017 14:24, "tabareh" notifications@github.com wrote:

So the summary is that we get this message when installing previous .net
packages on .net Core projects, and this is a matter of incompatibility.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NuGet/Home/issues/962#issuecomment-323042788, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFE7LQ3qIa9rpdzoIFzzcUOB9yEImGJwks5sZCLTgaJpZM4FaVOZ
.

I had this issue, but When I cleared My Nuget Packages Cache, it resolved this issue. On Visualstudio, Go to Tools -> Options -> Nuget -> and clear your cache.

I had this same issue. I was also prevented from clearing the cache so I deleted the .nuget folder.

please choose suitable version for targeted frame work then it will work

Was this page helpful?
0 / 5 - 0 ratings