question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't upgrade EF command line tool

See original GitHub issue

I’ve recently upgraded to EF Core 3.1.0. I’d also like to upgrade my command line tools, but…

> dotnet tool update --global dotnet-ef
Tool 'dotnet-ef' has multiple versions installed and cannot be updated.

Ooh dear, how did that happen?

> dotnet tool list -g
Warning: tool package 'dotnet-ef' is invalid, contact tool author:
Failed to retrieve tool configuration: Could not find a part of the path 'C:\Users\Me\.dotnet\tools\.store\dotnet-ef\2.1.11-servicing-32099\dotnet-ef\2.1.11\tools\netcoreapp2.1\any\DotnetToolSettings.xml'.
Package Id      Version      Commands
--------------------------------------
dotnet-ef       2.1.11       dotnet-ef

So…how do I upgrade my command line tools?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
wli3commented, Jan 2, 2020

@shaulbehr Sorry, you also need to remove the file C:\Users\Me\.dotnet\tools\dotnet-ef.exe

1reaction
shaulbehrcommented, Jan 7, 2020

@wli3 seems so, thanks! bitmoji

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need to Update EF Core Tools
Use command line, Cmd or PowerShell for specific version: dotnet tool update --global dotnet-ef --version 3.1.0.
Read more >
EF Core tools reference (.NET CLI)
Reference guide for the Entity Framework Core .NET Core CLI tools.
Read more >
Entity Framework Core Migrations
Alternatively, you can use a command line tool to execute Entity Framework CLI commands to create a migration.
Read more >
How to Solve the Command or File Was Not Found EF ...
In this article, we are going to learn how to solve the Command or File Was Not Found EF Core migration error.
Read more >
Entity Framework Core Inside Rider: UI Way
Let's get started. To work with Entity Framework Core, it is usually a good idea to use its powerful command-line tools – dotnet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found