Chronostasys / Blazor.Cropper

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

Can't find Blazor.Cropper #64

Open ghost opened 1 year ago

ghost commented 1 year ago

I installed your nuget package. When I add @using Blazor.Cropper, I get an error. It can't find the namespace.

Chronostasys commented 1 year ago

I installed your nuget package. When I add @using Blazor.Cropper, I get an error. It can't find the namespace.

That's weird. Could you provide a sample project?

nhwilly commented 12 months ago

Same is happening to me. There seems to be Blazor.Cropper and Cropper.Blazor depending on where I'm looking... image

nhwilly commented 12 months ago

I went through my repos as I tried another package first. Conveniently named Cropper.Blazor.

I figured some junk might be hanging around, so I wiped the NuGet cache (huge pain) and then re-downloaded everything and it just can't find the Blazor.Cropper namespace.

When I don't put it in the _imports.razor file, and I just type in the component name, it prompts me to add an @using Blazor.Cropper at the top of the component. I do that and it's still a mess.

I can't be sure this isn't some sort of namespace conflict, but I can't find it.

nhwilly commented 12 months ago

I downloaded the sample app and discovered that the project CropperSampleV6 has a project reference to Blazor.Cropper which is a project in the same solution. That project has a Blazor.Cropper namespace.

The CropperSampleV6 does not reference the NuGet package suggested in the readme.

So that explains why we can't find it.

The CropperSampleV6 is built for .NET 7 and the Blazor.Cropper is built for.NET 6 which is why the sample works, I think.

When I install the NuGet package, it can't find any of the namespaces it's supposed to and I am officially giving up for now.