Maui compiler needs work

Lloyd Sheen 1,391 Reputation points

I just copied a datagrid with its columns. This of course gave me errors right away since the x:name(s) were the same. I correct this and recompiled. Now I get the following (see image). The errors will not go away, I deleted the obj and bin folders, and cleaned the solution and rebuilt it. This is a constant problem with VS and Maui, the generated files sometimes cause a problem and in this case it is beyond terrible. The app actually compile and the changes are visible when I debug. VS will not get rid of these errors as I have restarted VS and rebooted the workstations. This usually happens when I pause the debugging session and while watching data, add some new code and it gives the error that you need to restart. It generally takes a couple of days before this error goes away so lets see how long these errors keep showing.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,700 questions
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,978 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rob Caplan - MSFT 5,427 Reputation points Microsoft Employee

    Hi @Lloyd Sheen , Please file Visual Studio bugs on the Visual Studio Developer Community per Report a problem with the Visual Studio product or installer.

    That will enter your report directly into the VS bug database for consideration by the VS Engineering Team.

    You can also check for existing reports - there are several that may be related, but you haven't provided enough information to tell for sure. If one appears to match you can vote it up or add your context.

    When you report this please include version numbers, exact steps, and a clear description of the issue. Separating steps and expected results into bullet points instead of a wall of text may help.

    • Do step 1
    • Do step 2
    • Do step 3
    • Expected result: <results>
    • Actual result: <results>

    Error message clean up runs asynchronously, and problems with it often come from extensions rather than from VS itself. Try running VS in safe mode to see if you still reproduce it.

    There is a known issue with the Roslyn compiler that affects several add-ons, including the MVVM community toolkit. Source generators run very unreliably (especially with multi-targeting) #67123

    Note that there isn't a separate "Maui Compiler" - MAUI is part of .Net and uses the standard C# compilers. MAUI provides some cross-platform specific tooling, but that does not sound relevant from what you've mentioned here.

    0 comments No comments