avs
avs

Reputation: 45

Why Visual Studio 2019 is not creating Content, AppData, Scripts folder

I have installed Visual Studio 2019 community edition. When I am creating a .NET Core MVC project, Visual Studio is not creating the desired folders structure.

I have followed the Visual Studio 2019 wizard to create an MVC project. One other problem I am facing is that .NET 2.2 is not available while the selection of the environment, So I am using 2.1 here. Please help.

My Folder Structure contains:

Connected Services

Dependencies,

Properties,

wwwroot,

CONTROLLERS (Folder),

MODEL (Folder),

VIEWS (Folder),

appsettings,

Program.cs,

Startup.cs

Upvotes: 2

Views: 2159

Answers (2)

Asp Core Mvc does not create those directories.

Asp Core Mvc directories structure:

  • Application files

  • Configuration files

  • Static assets

  • Packages

  • A runtime (self-contained deployment only)

You can read and learn more about that here : ASP.NET Core directory structure

ASP.NET Documentation

Upvotes: 0

Reza Nourbakhsh
Reza Nourbakhsh

Reputation: 108

this is the new asp core mvc structure.all you need to do is to place your static files in wwwroot folder, use startup.cs instead of the old app-start and maybe the appsettings for your application settings.

Upvotes: 2

Related Questions