question

FreddyUllrich-5059 avatar image
0 Votes"
FreddyUllrich-5059 asked AnnaXiu-MSFT edited

How run “Package Manager Console” commands programmatically in .Net 5?

I want to run commands like "update-database" (normally done in Package Manager Console) using c# code, how is it possible? Note: I'm using .net 5, and the solution to this problem may be different from older .net versions.
I also posted here: https://stackoverflow.com/questions/67673765/how-run-package-manager-console-commands-programmatically-in-net-5

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @FreddyUllrich-5059 ,

Welcome to Microsoft Q&A!

According to your description, could you tell me if you are using Entity Framework?
If you are using Entity Framework, it is not supported in here and please report the issue to GitHub: https://github.com/dotnet/efcore/issues.

Sincerely,
Anna



If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.