Alex's Coding Blog
  • Home
  • About
  • Projects
  • Contact me

Blog

Fixing "The tool package could not be restored" error while updating EF tools

  • March 15, 2021 March 15, 2021
  • by Alexander

I've got this error while trying to update Entity Framework tooling from 3.x to 5.0.

dotnet tool update --global dotnet-ef

Gave me the following error

Tool 'dotnet-ef' failed to update due to the following:
The tool package could not be restored.

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

Some of globally defined nuget sources were required an authorization, which actually don't needed for this specific task.

The solution is to remove problem sources from the list, thus first list defined sources:

dotnet nuget list source

And secondly remove the toxic one

dotnet nuget remove source toxicfeed

Helped in my case

How-to

Debugging microservices is always tricky and time consuming specially without proper code level logging in place.

Meet Konso. It's developed as a solution for this challenge and can help with saving development effort for your team up to 30%. 🎯🎉

The key functions are:

🔥 Centralized logging for your microservices
🔥 Tracing with metrics and value tracking events
🔥 Ad-Hoc events exploration
🔥 Saving your queries
🔥 Create alerts and get notified


You can start collecting you project's logs in 5 minutes. 🕐💪

To Learn more about logging tool, book a free demo.
To get started for free, Create your free account now

Alexander Lvovich

Solution Architect and Software Developer.

Share on:

No comments are allowed for this post

Recent Posts

  • Solved: Invalid combination of TargetFramework and AzureFunctionsVersion is set
  • When Clouds Clash: Understanding Kubernetes Cluster Failures and How to Overcome Them
  • Collecting .NET API metrics with Konso
  • Applying Value Tracking for your .NET 7 application with Konso
  • How to disable object model validation .NET 7
  • Easily track and troubleshoot errors in your .NET 7 web app using Konso's logging feature

Categories

  • Azure
  • Architecture
  • .NET Core
  • Certification
  • DevOps
  • How-to
  • Azure Functions
  • Serverless
  • Cosmos DB
  • Security
  • Thoughts
  • Kubernetes
© Copyright 2023, Alexander Lvovich. Theme by Colorlib
I use cookies and similar technologies on our website to enhance your browsing experience and analyze website traffic. By clicking "Accept," you consent with my Privacy Policy to the use of these technologies.
Accept