官术网_书友最值得收藏!

Choosing the application type

ASP.NET Core provides us different application templates to start developing applications. These templates give us an optimal project structure to keep everything organized. We have the following types:

  • Empty: This is simplest form of a project template containing only Program.cs and the Startup.cs class. Due to the complete modular nature of ASP.NET Core, we can upgrade this empty project to any type of web application.
  • Web API: This creates the Web API project with controllers, web.config, and so on. Our focus will be on this application template.
  • Web Application: This creates an ASP.NET Core MVC type of project with Controllers, Views, client configurations, Startup.cs, and web.config.
  • Web Application (Razor pages): This creates an ASP.NET Core web app using the Razor pages.
  • Angular, React.js, and React.js with Redux: This creates JavaScript-framework-based ASP.NET Core web applications.
ASP.NET Core Project Templates

It's not mandatory to follow the template project structure provided by ASP.NET Core. When working on large projects, it's best practice to split them into separate projects for maintainability. The default project structure is good enough to understand the interaction between various components.

主站蜘蛛池模板: 保康县| 江永县| 孝义市| 潍坊市| 永和县| 泸溪县| 安顺市| 长葛市| 荃湾区| 黔西县| 隆化县| 马关县| 翁牛特旗| 广东省| 土默特右旗| 石河子市| 郎溪县| 梧州市| 康保县| 陈巴尔虎旗| 锦州市| 蛟河市| 乌鲁木齐市| 郓城县| 青神县| 米泉市| 出国| 凉山| 浪卡子县| 牟定县| 富源县| 元谋县| 盈江县| 洛阳市| 南安市| 闽侯县| 定陶县| 邯郸市| 堆龙德庆县| 光山县| 信阳市|