Chronostasys / Blazor.Cropper

A blazor library provides component to crop image
MIT License
84 stars 19 forks source link

Incompatible with .NET 7 #73

Closed nhwilly closed 11 months ago

nhwilly commented 12 months ago

For anyone finding this - you get this error:

CS0029  Cannot implicitly convert type 'Microsoft.AspNetCore.Components.ElementReference' to 'Blazor.Cropper.Cropper'   

Evidently this is a known problem: https://github.com/dotnet/docs/issues/35449

And it's number 5 on this list: https://github.com/dotnet/razor/issues/8718

Hopefully you won't waste an afternoon it. There is a mention of someone with a .NET 8 preview version having the same issue.

nhwilly commented 11 months ago

I have no idea why it wasn't working. I created a new project from scratch and now it seems fine.