I had created ASP.NET 6.0 Core Web App MVC project VS a few weeks back.
The generated project files looked like this with pre installed NuGet packages
Now when I create the project the same way I am missing the NuGet packages and Data folder with DbContext and settings for the database in appsettings.json.
CodePudding user response:
It's because you haven't selected the Authentication Type as 'Individual Users' from drop-down menu on 'Additional Information Page' after creating project.
I'll explain through screenshots.
When you select None Like this: Authentication Type: None . You'll be missing the NuGet packages and Data folder with DbContext and settings for the database in appsettings.json. Like this: No Npm packages
And When you'll select 'Individual Users' Authentication Type: Individual Users It'll be with pre installed NuGet packages and Data folder with DbContext and settings for the database in appsettings.json. Looking like this Pre installed packages
I hope this helps and solves your problem :)