问题
The command "Add-Migration InitialCreate" generates the following error message:
Could not load assembly 'MathModelApp'. Ensure it is referenced by the startup project 'MathModelApp'.
What does the error message mean?
I am using netcore 2.1, Target Platform is x86.
回答1:
Please go to solution property and check if you selected same project as the startup project in the solution or not.
回答2:
- Right Click on EndPoint Project
- Click on the Set As Startup Project
来源:https://stackoverflow.com/questions/53521473/ef-core-migration-could-not-load-assembly-assemblyname