This solution worked for me
Right click on your root project -> configure startup projects
make sure you have selected only one project as startup.
EXAMPLE: When you create angular and Asp.Net core project through visual studio, it will set angular as well as dot net core project as startup due to which mostly people encounter this issue. Just change startup setting for angular project to none and try again "Add-Migration". It should work.