Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nate M 16 posts 136 karma points
    Aug 30, 2024 @ 20:56
    Nate M
    0

    Where is the Controllers and Models folders?

    Hello, I'm new to Umbraco v13.

    However, in v8, there were Controllers and Models folders.

    In v13, I don't see those folders.

    1. Where are the folders located?
    2. How can I add them using Visual Studio 2022?
  • Diljith Peter 9 posts 80 karma points
    Sep 02, 2024 @ 06:25
    Diljith Peter
    1

    Here's a breakdown of where you can create these folders in Umbraco v13:

    • Controllers Folder: In Umbraco v13, the Controllers folder is typically not included by default. This is because Umbraco now uses a more modular approach with ASP.NET Core. If you need to create custom controllers (e.g., SurfaceControllers, API Controllers), you should manually add a Controllers folder in the root of your project. To add a Controllers folder in Visual Studio 2022: Right-click on your project in the Solution Explorer. Select Add > New Folder. Name it Controllers.
    • Models Folder: Similar to the Controllers folder, the Models folder is not automatically included. You can create this folder if you need to store your custom models (e.g., view models, data models). To add a Models folder in Visual Studio 2022: Right-click on your project in the Solution Explorer. Select Add > New Folder. Name it Models.
  • Nate M 16 posts 136 karma points
    Sep 03, 2024 @ 20:10
    Nate M
    0

    Thank you. I did find documentation on this here.

Please Sign in or register to post replies

Write your reply to:

Draft