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

Blazor - Cannot implicitly convert type 'Microsoft.AspNetCore.Components.ElementReference' when upgraded to VS 17.6.0 #48327

Closed
1 task done
vladopandzic opened this issue May 19, 2023 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@vladopandzic
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After upgrading my VS from 17.5.5 to 17.6.0 my Blazor application how has lot of errors. Most of them are : Cannot implicitly convert
type 'Microsoft.AspNetCore.Components.ElementReference' to MyComponent.
MyComponent inherits some other component.

This are relevant SO issues from today and yesterday, people have problem with something breaking going on:

Expected Behavior

No response

Steps To Reproduce

Create .net7 blazor project
Create component which inherits from some other
Now, use this component somewhere <MyComponent @ref="myRef" /> and use @andrefboliveira

This used to work in 17.5.5

It is not problem for me to downgrade Visual Studio but on our CI/CD build inside docker fails since it pulls
dotnet build tooling from mcr.microsoft

Exceptions (if any)

No response

.NET Version

7.0.302

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label May 19, 2023
@ScarletKuro
Copy link

Duplicate of dotnet/razor#8727

@jjonescz jjonescz closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

3 participants