.NET 8.0.203 Doesnt compile non .xaml files to the xml namespace "clr-namespace" #21299
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/windows 🪟
s/needs-info
Issue needs more info from the author
t/bug
Something isn't working
Description
When compiling any project in blazor hybrid with the default setup will fail with the error:
The file will look like the following
despite the code completion finding all symbols in the [ProjectNamespace] namespace, when compiling these wont be included for some reason.
Changing
local:Routes
to any xaml file will allow it to compile but as the type isnt a blazor page inside a blazor web view the app will load with nothing displayed and an exception.Compiling with the new sdk also gives this warning which is not displayed when compiling with earlier versions but it could just be compiler noise
Last working version to my knowledge
Steps to Reproduce
1, Create new blazor hybrid app via dotnet new maui-blazor
2. Attempt to run
Link to public reproduction project repository
No response
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Not applicable
Did you find any workaround?
Reverting sdk to 8.101 (a later one might work but I have not tried)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: