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

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.

主站蜘蛛池模板: 成武县| 普陀区| 福海县| 平昌县| 新龙县| 綦江县| 海口市| 河池市| 云安县| 凤阳县| 孟连| 江北区| 东平县| 五寨县| 庐江县| 尚志市| 霸州市| 绥江县| 平塘县| 汤阴县| 陇西县| 姜堰市| 庆阳市| 武义县| 西充县| 吉木萨尔县| 贵定县| 霍州市| 莒南县| 大足县| 尖扎县| 合水县| 错那县| 金山区| 柳林县| 秦皇岛市| 云霄县| 特克斯县| 榆树市| 延寿县| 延边|