Source Generator Code in .NET MAUI: "Cannot resolve symbol"
I am working with Resharper 2024.2.7, .Net Maui for .Net 9 and Source Generators such as [ObservableProperty] and [RelayCommand].
But Resharper is not recognizing any of the generated code. The code navigations works as expected, but all other references to source generated code are marked red and give me the error “Cannot resolve symbol ‘xyz’". The project does compile and run as expected, so there are no actually issues in the code.
Please sign in to leave a comment.
Hello J Michalski, thank you for your question. There were some issues with source generators and ReSharper versions < 2024.3.1 and Visual Studio 2022 versions > 17.13.0. They were fixed in newer ReSharper versions. Could you try installing the latest ReSharper 2024.3.7 and check if the issue persists? Please let me know if that helps. Thank you!
Hello Maria Pleskunina , thank you for your answer. I installed the update and the issues are gone, thanks a lot.
You're welcome! Have a nice day :)