Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Code first not set up when creating ASP.NET Core 3.1 web application #2541
Comments
|
It looks like the difference this type is that I did not set up user authentication. When I configure this for an Individual User, the expected scaffolding is created. This seems less than ideal. What if I don't want authentication in my app? Why should that make a difference on setting up code first? And it's hard for the user to recognize this was the cause, as they seem unrelated. NOTE: The |


Versions
What happened
A few months ago, I created a new ASP.NET Core 3.1 web application. As I recall, Visual Studio created a Data folder, a Migrations folder, and a Models folder. It created an initial migration and configured the solution such that the
Add-MigrationandUpdate-Databasecommands were available in Package Manager Console.I've just created another web application after installing 16.7.2 and none of these things are happening. None of the folders are created and the
Add-MigrationandUpdate-Databasecommands are not recognized.Although I'm still getting used to code first, this worked pretty good last time. I can't tell if these working features have been removed for some reason, or if there's a problem with my install.
Steps to Reproduce
Add-MigrationandUpdate-Databasecommands are not recognized.Expected behavior
I wanted it to work like the last time I created a web application.
The text was updated successfully, but these errors were encountered: