CS0117: 'Resource' does not contain a definition for #22796
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
(probably a VS for Mac issue)
See repro (Platforms/Android/MainActivity.cs): when you try to access the
Resource
s you do not get autocompletion, rather you get a fake CS0117 error. It seems the partial class generated by the designer is empty:I say "fake" because the error is ignored and the application is built successfully (the resource is also properly resolved).
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/inimirpaz/maui_issues/tree/android_resource_issue
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: