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

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.

主站蜘蛛池模板: 宿松县| 厦门市| 当涂县| 惠州市| 长岛县| 连南| 延安市| 波密县| 定陶县| 虎林市| 临潭县| 揭阳市| 河西区| 阿克陶县| 高密市| 清镇市| 甘南县| 银川市| 海城市| 中方县| 朝阳市| 宁明县| 科技| 双牌县| 嘉峪关市| 乌鲁木齐市| 桑植县| 海口市| 通江县| 雅安市| 广南县| 定安县| 平果县| 巴塘县| 绥阳县| 北碚区| 泸定县| 娄底市| 南陵县| 彭泽县| 佛教|