Search code examples
c#.netmauimaui-windows

MAUI items Template are missing, how to fix it?


My visual studio version was 2022 17.5 Preview 1.0 , but today now it updated to 17.5 Preview 2.0. And now i can't add any MAUI item such as Content Page or others. You can see HERE that the option "MAUI" isn't appearing... In the last version it was working...

How can this be fixed?


Solution

  • Is this a project (solution) you created with the earlier preview?

    If so, create a new project. Same problem?

    If new one works, then I suspect some internal VS incompatibility between preview versions:

    • Delete solution's hidden .vs folder.
    • Delete all .bin and .obj folders.

    No Maui "Project template" is more serious:

    • Delete Visual Studio.
    • Reboot PC.
    • Install Visual Studio. (Windows Search should still show "Visual Studio Installer", Can install from there.)