Postlagerkarte / blazor-dragdrop

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

<Dropzone> element not recognized in Visual Studio #138

Closed jschilb closed 2 years ago

jschilb commented 2 years ago

I'm working through the documentation to get this component built in to my Blazor Server application. So far, I performed the following steps.

  1. Installed the nuget package (v2.4.0)
  2. Registered the service in Startup.cs
  3. Copied the dragdrop.css you provided into my site.css file

However, when I try to add the element to my .razor page, it does not appear to be recognized. Curious if requirements or element naming may have changed. I'm using VS 2022, and my app is running with .NET 6

jschilb commented 2 years ago

This is resolved.

vkristijan commented 2 years ago

@jschilb could you add how you resolved the issue in case someone else gets the same problem?

jschilb commented 2 years ago

@vkristijan , thanks for the reply. In my case, this appears to be an issue with Visual Studio 2022 (currently on Pro v17.1.2). There are a lot of bugs with razor pages displaying incorrect styling (in both the markup & @code{} sections). I've read that some fixes are underway to improve razor pages in version 17.2.x, so I guess I'll wait and see how things look then.