Command Update-Database -Context "IdentityDbContext" Doesn't Create Tables

12.1k Views Asked by At

I have a previous created project from "ASP.NET Core: Security" LinkedIn Learn Course (https://1drv.ms/u/s!Ap1TSQ4qoVyxgrImtb6ZFwZXQGW2BA) and in this project already exists the Migrations Migrations Folder Screenshot folder that represents the objects that will be create in data base when executed the command Update-Database -Context "IdentityDbContext". The problem Is that when I execute the command in Package Manager Console I have no return and the data base is not created.

I tried to update the project to .net 2.2. I also tried with another database.

The entire project is here: https://1drv.ms/u/s!Ap1TSQ4qoVyxgrImtb6ZFwZXQGW2BA

I have no error or feedback from visual studio when the command is executed. No return from command's execution image

1

There are 1 best solutions below

0
Gustavo Lemos On BEST ANSWER

I ran dotnet --list-sdks and realized that I didn't have .NET Core SDK 1.1 installed in my machine.

I Installed it and ran Update-Database -Context "IdentityDbContext" again with success.