Share via

Why does Live Preview not work on my VS 2022 maui project

CFos 41 Reputation points
2023-01-10T00:28:12.443+00:00

Hi,
I am using VS 2022 and have a .NET MAUI project. The issue is that Live Preview doesn't seem to work. I watched the video here: https://www.youtube.com/watch?v=nEOvX3YKw_E

However, I get the error shown below and I don't have the debug menu at the top of the running title bar as shown in the other screenshot.  

277645-image.png

277624-image.png

How do I get this to work?
Thanks,
Clint

Developer technologies | .NET | .NET Multi-platform App UI
Developer technologies | Visual Studio | Debugging

2 answers

Sort by: Most helpful
  1. CFos 41 Reputation points
    2023-01-12T16:37:21.57+00:00

    Thanks for the reply! I upgraded to the latest VS2022 ( had 17.4.1 and updated to 17.4.3) but it still shows the same issues. Hot Reload is enabled as shown below. Screenshots taken when debugging MAUI app.

    User's image

    User's image

    Thanks,

    Clint

    Was this answer helpful?


  2. Anna Xiu-MSFT 31,201 Reputation points Microsoft External Staff
    2023-01-10T08:14:45.527+00:00

    Hi @CFos ,

    Welcome to Microsoft Q&A!

    Are you using the latest version of VS2022? Please update your VS2022 to the latest version through Visual Studio Installer.

    Then, go to Debug > Options > XAML Hot Reload and make sure that the “Enable XAML Hot Reload” option is selected.

    If it persists, I suppose it may be a known issue: https://developercommunity.visualstudio.com/t/NET-MAUI-Hot-ReloadXaml-Live-Preview-n/10198694?entry=problem&q=XAML+live+preview+not+working

    You can also vote and add your comment in that ticket.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our [documentation][1] to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.