Default files and folder when creating new project .net core 8.0

 

Folders

  •  Controllers/
    • Contains controller classes that handle incoming HTTP requests and return responses.
    • For example, HomeController.cs manages requests to the home page.
  • Models/
    • Houses classes that represent the data structure and business logic of the application.
    • For instance, Product.cs might define the properties of a product entity.
         Medium
  • Views/
    • Contains Razor view files (.cshtml) that define the UI of the application.
    • Organized by controller; for example, Views/Home/Index.cshtml corresponds to the Index action in HomeController.   
  • wwwroot/
    • The web root folder for serving static files like CSS, JavaScript, and images.
    • Subfolders include:
      • css/: Application CSS files.
      • js/: JavaScript files.
      • lib/: Third-party client-side libraries (e.g., Bootstrap, jQuery).
               digitaltechjoint.com
               Tektutorialshub
               dushsoftware.blogspot.com
  • Properties/
    • Contains project-specific settings.
  • Dependencies/
    • Lists all the dependencies and NuGet packages used in the project.

 

Files

  • launchSettings.json: 
    • Defines how the application should be launched and debugged, including environment variables and server configurations.       
  • appsettings.json
    • Stores configuration settings such as connection strings, application settings, and logging configurations.
    • Can be overridden by environment-specific files like appsettings.Development.json.
  • Program.cs
    • The entry point of the application.
    • Configures services and the application's request pipeline.
  • MyApp.csproj
    • The project file that defines the project's settings, dependencies, and other configurations.

Related Question