Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not playing nice with .razor files in Blazor #23

Open
itniels opened this issue Jan 19, 2024 · 1 comment
Open

Not playing nice with .razor files in Blazor #23

itniels opened this issue Jan 19, 2024 · 1 comment

Comments

@itniels
Copy link

itniels commented Jan 19, 2024

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"
@ChristianSauer
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants