Postlagerkarte / blazor-dragdrop

Easy-to-use Drag and Drop Library for Blazor
MIT License
406 stars 97 forks source link

.NET 6.0 Program.cs #149

Open alsmyth opened 2 years ago

alsmyth commented 2 years ago

Entering this issue with a resolution included to save anyone else time when adding this component to a .NET 6.0 with just Program.cs (no Startup.cs),

I had trouble with the builder.Services.AddBlazorDragDrop();

It turned out I had to simply had to add to Program.cs using Plk.Blazor.DragDrop;

I spun my wheels a bit on this because I have other blazor component packages in my application without associated using statement - also in the demo project the Startup.cs it does not have using Plk.Blazor.DragDrop;

If someone wants to explain further - that'd be great.