I am building an ASP.NET Core 7 application in Visual Studio 2022. When installing Microsoft.EntityFrameworkCore.Tools
package, a copy of the Microsoft.EntityFrameworkCore.Design
is installed as well (see the image below).
After restarting Visual Studio 2022, I launched the Package Manager Console
and typed Add-Migration
. This returned the message that:
`Add-Migration : The term 'Add-Migration' is not recognized...`.
If I install Microsoft.EntityFrameworkCore.Design
separately a second instance of Microsoft.EntityFrameworkCore.Design
is added to my Packages
. However, Add-Migration
is now recognized.
My questions are:
- Can I remove one of the instances of
Microsoft.EntityFrameworkCore.Design
from the solution? Are two instances needed?