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

1 comment
Comment actions Permalink
Official 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.

Please sign in to leave a comment.