Blazor templated components custom context not recognized by ReSharper
Blazor allows for the creation of custom components, as specified here: https://docs.microsoft.com/en-us/aspnet/core/blazor/templated-components?view=aspnetcore-3.1
I'm currently working with DevExpress' Blazor components, which make liberal use of the RenderFragment<T> methodology. In many cases I have to specify a custom context name in order to handle conflicting contexts within the same razor page. When I do so, ReSharper is highlighting the custom context and indicating 'Cannot resolve symbol _____'. (Uploaded screen capture)
Uploading... File uploaded: Image 2.png Upload complete!
The code is not in error (compiles and runs just fine) but ReSharper is highlighting it as an error.
Any suggestions on how to best handle this?
Thanks,
John
Please sign in to leave a comment.
Hello,
Sorry for the delay in responding.
It happens to be a known issue - https://youtrack.jetbrains.com/issue/RSRP-477950.
The fix will be included in ReSharper 2020.2 version as well as other Blazor stuff support.
Please follow our blog to get the latest news about the new version.
Thank you.
This issue is still not fixed (2025.2.4)
Hi Ondrej Novotny!
The initial issue was fixed in ReSharper 2020 version.
If you still can reproduce it, please create a new ticket with steps, logs and code samples. Thanks!
Hi, I already did Cannot resolve symbol in razor files : RIDER-132028