-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New to Add-Migration, can't get it to work #28022
Comments
Can you share a simplified repro project so I can investigate further? Something seems to be silently terminating the tool... |
Easier said than done, it is a large project. But what I take from your comment is that there is nothing obvious from the Verbose messages, in other words this is not just my imagination. I will try to develop a small repro. |
EF Team Triage: This issue is lacking enough information for us to be able to effectively triage it. In particular, it is missing the following information requested in the new issue template. Can you please provide this information?
Ideally include a complete code listing that we can run to reproduce the issue. Alternatively, you can provide a project/solution that we can run. BTW we're not just doing this to be mean 😄... we get a lot traffic on this project and it takes time to attempt to reproduce an issue based on fragments of information. In addition, our attempt is often unsuccessful as the exact conditions required to hit the issue are often not explicitly included in the code provided. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we ask that folks give us a self-contained way to reproduce an issue. For a guide on submitting good bug reports, read Painless Bug Tracking. 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. |
Sorry I didn't have time to get to this right away. It does look like a bug. |
I am new to migrations and can't seem to get it to produce the file. I am targeting .NET 6, I created my app with the "Blank App, Packaged (WinUI 3 in Desktop)" template and two libraries with the "Class Library (WinUI 3 in Desktop)" template. The context is in one of the libraries ("Q5U"). Below shows what happens when I try Add-Migrate. There is a pause before it returns the last prompt so it looks like it's doing something but I don't see the output file anywhere. I also tried the -Output option to no avail.
I feel like I'm missing something basic ... ?
To allow migrations to create the context I created a factory and specified UseSqlite. Since there is no pre-existing database file I left the file name out of the UseSqlite call.
Context factory
Results
The text was updated successfully, but these errors were encountered: