Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Are two instances of `Microsoft.EntityFrameworkCore.Designer` required to use `Add-Migration`?

$
0
0

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.

Two MicrosoftEntityFrameworkCore.Design packages.

My questions are:

  • Can I remove one of the instances of Microsoft.EntityFrameworkCore.Design from the solution? Are two instances needed?

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>