Simple migration apparently completed, but prompt in Package Manager Control not restored
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice] I added a public get/set property to an entity class and tried to create a migration, using the Package Manager Console. A migration file was created, as expected, but not automatically opened, which would normally be the case. That, however, is not the issue that I am writing about.
The issue is that the prompt was not restored in the Package Manager Console. I will try to attach a copy of the log from the Package Manager Console.
I have had this problem in the past. So it is not due to the latest VS update operation.
Thank you for your trouble!
Original Comments
Feedback Bot on 3/7/2023, 02:37 AM:
(private comment, text removed)
Original Solutions
(no solutions)
Duplicate of dotnet/efcore#19021. Please share a VS solution that reproduces this issue.
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.
Hi,
I was able to recreate this issue. The RC was that the project was starting one or more threads that weren't background jobs at start up when the migration tools ran them. These threads prevented the main thread from terminating.
See https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread.isbackground?view=net-8.0 for more information
Hope this helps
Note from triage: moving to docs repo to document that starting threads could cause this.