Home > database >  How to create ASP.NET Core MVC project in Visual Studio with pre installed NuGet packages and Data f
How to create ASP.NET Core MVC project in Visual Studio with pre installed NuGet packages and Data f

Time:10-13

I had created ASP.NET 6.0 Core Web App MVC project VS a few weeks back.

enter image description here

The generated project files looked like this with pre installed NuGet packages

enter image description here

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.

enter image description here

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 :)

  • Related