net_automatic_interface icon indicating copy to clipboard operation
net_automatic_interface copied to clipboard

Not playing nice with .razor files in Blazor

Open itniels opened this issue 1 year ago • 1 comments

I am currently developing a Blazor-Server app where I inject interfaces, but when using them in the razor code it seems to not understand where they are, it just throws a compiler errors thinking that they are two different things, see this example:

@inject IMyThing myThing

<SomeComponent Thing="@myThing" />   <--- Throws error " Argument 1: Cannot convert from MyApp.BL.Provider.IMyThing to IMyThing"

itniels avatar Jan 19 '24 16:01 itniels

Can you write a minimal reproducible sample? Would be glad to debug but I have no idea how to setup your project.

ChristianSauer avatar Jan 30 '24 13:01 ChristianSauer