ef6 icon indicating copy to clipboard operation
ef6 copied to clipboard

Entity Framework migration commands hang the process

Open vsfeedback opened this issue 6 years ago • 6 comments

This issue has been moved from a ticket on Developer Community.


[severity:I'm somewhat annoyed. A fix would be nice] [regression] [worked-in:16.6.2?] Any time I run add-migration or update-database in the package manager console the command hangs at the end and doesn't return control. It also locks the project binary files so I can no longer build. If I run it with -verbose I can at least see that it completes the requested task.

In order to clear the problem and build the system again I have to use taskkill to stop the process by PID. Restarting Visual Studio is not sufficient, the .Net task will survive the Visual Studio restart.


Original Comments

Feedback Bot on 7/21/2020, 11:44 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

vsfeedback avatar Jul 29 '20 20:07 vsfeedback

This continues to happen to me consistently in Visual Studio 16.7.6 which just released.

stevenhiner avatar Oct 15 '20 00:10 stevenhiner

Same for me. VS 2019 16.8.3. Extremely annoying. In fact, any EF command hangs, It also happens when running Entity Framework Core via NET CLI.

Skybladev2 avatar Dec 13 '20 11:12 Skybladev2

Happens in current version of vs2022 as well, is there any way to get passed it?

DanielLauridsenSV avatar Jan 08 '22 01:01 DanielLauridsenSV

Happens also in version vs2019

iamakiraa avatar Jan 16 '22 13:01 iamakiraa

happens during adding of almost every second migration in vs2022 professional

JadaVonRuth avatar Feb 09 '22 18:02 JadaVonRuth

This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.

ajcvickers avatar Apr 25 '22 09:04 ajcvickers