'more than one project was found in directory 'ecommerce.web'. specify one using its file name

I was developing a Ecommerce Website. I tried to create migration for my project but when i set the updated migration command like this "dotnet ef migrations add InitialCreateTable --context CoreDbContext --project ECommerce.Web --output-dir Data/Migrations" I got the above error. But when I use the old migration command "add-migration InitialCreateTable -context CoreDbContext -project ECommerce.Web -o Data/Migrations" It worked properly.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source