net_automatic_interface
net_automatic_interface copied to clipboard
Not playing nice with .razor files in Blazor
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"
Can you write a minimal reproducible sample? Would be glad to debug but I have no idea how to setup your project.