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
这是新的asp core mvc
结构。您要做的就是将静态文件放在wwwroot
文件夹中,使用startup.cs
而不是旧的app-start,也可能是应用程序设置的appsettings。
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.