Execute the Add-Migration migration report Build failed.

1. I made a low-level mistake. After changing the code, I forgot to compile it, so I ran Add-Migraion directly, and then reported an error. I couldn’t figure it out for a while, and the ide didn’t have an error prompt.

2. Trying to recompile the project, there are more than 20 errors, the key is that IED did not even prompt before compiling. Then solve the error prompt

 3. Run Add-Migration InitialCreate again and it will be normal

Guess you like

Origin blog.csdn.net/weixin_39237340/article/details/125976483