2

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

6
  • I think you'll find there are other differences as well. For example, areas have not been scaffolded either. Likely the second project is not being scaffolded with accounts and authentication. Commented Oct 11, 2022 at 0:37
  • Which version of Visual Studio are you using? In addition, Community or Developer package? Furthermore, please double check the type of project you have created are same. Commented Oct 11, 2022 at 3:24
  • I know this might seem odd but did you change Keyboard setting? There used to be a glitch where some Project Types loaded different. Switch to C# Keyboard and try again. Commented Oct 11, 2022 at 3:34
  • @AluanHaddad Yes, the second project was not scaffolded with users, but I am asking for the data part of the project and the NuGet packages. Commented Oct 11, 2022 at 15:25
  • @MdFaridUddinKiron I am using Microsoft Visual Studio Community 2022 (64-bit) Version 17.3.4. The first screenshot of the question shows the type of project I had created both times. Commented Oct 11, 2022 at 15:33

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.