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

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.

主站蜘蛛池模板: 鹤庆县| 将乐县| 木兰县| 剑阁县| 隆安县| 遂平县| 兴业县| 车险| 高雄县| 老河口市| 漠河县| 蒲城县| 久治县| 延津县| 嵩明县| 馆陶县| 阳原县| 罗甸县| 台中县| 永嘉县| 安多县| 云阳县| 汾阳市| 申扎县| 探索| 白沙| 普宁市| 北海市| 莱阳市| 临武县| 台安县| 五寨县| 中山市| 巨野县| 儋州市| 青铜峡市| 青冈县| 清河县| 湟中县| 漯河市| 镇雄县|