Can't upgrade EF command line tool
See original GitHub issueI’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:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shaulbehr Sorry, you also need to remove the file
C:\Users\Me\.dotnet\tools\dotnet-ef.exe
@wli3 seems so, thanks!