-
Notifications
You must be signed in to change notification settings - Fork 214
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
Installation instructions may not work on NET 8 #425
Comments
Have you found what the issue is? |
Hi Matt, i had the exact same problem. After reaching the point of just trying out random lines of code from different projects and hoping for the best, i figured out that adding
to |
Was this for a .NET 8 project? Still having issues with the nodes rendering even with these two lines. |
Interesting. I am running on a .NET 8 project with both client and server-side rendering. The render mode is however |
I'm using Radzen components. I wonder if there is a conflict with the CSS. Using the default project mattj23 used it works fine. But my project renders nothing when adding:
If that line is not there the nodes get rendered but you can't do anything with them. |
That didn't work for me, but it did when adding the two lines to the head section of _Host.cshtml on a relatively empty .net 8 Blazor Server project. |
@Willdew, I can confirm this worked for me with It also seems like the documentation can use an update for .NET 8, given that the new Blazor project structure has been shifted around. I'm going to try to figure out how the documentation is structured and maybe make a PR, unless someone who's better positioned to do so wants to update it. |
In the App.razor I added the following to the Routes
|
I've tried the installation instructions under the "Getting Started" section of the documentation, starting at Installation and going through Display on a fresh Blazor Web App project from the default template in NET 8, and the output does not match the sample given in the documentation.
I tested this on a Windows 10 machine and on a Manjaro Linux machine. I used Rider on both systems.
When using the
default.styles.min.css
the positioning of the nodes does not match the sample picture, and the nodes can't be clicked or dragged at all (both Windows and Linux). If@rendermode InteractiveServer
is used the nodes can be clicked but not dragged.Picture above is from Windows 10
When using the
style.min.css
stylesheet, the node positions look like they might be correct, but the link is not drawn (on Windows and Linux) and there is no interactivity. When using@rendermode InteractiveServer
the link line is drawn and the nodes can be clicked and dragged, though they look the same (no border or background...I assume that's normal for that stylesheet).Picture above is from Windows 10
I've attached the sample project below:
BlazorApp1.zip
I don't know if I'm missing something simple, if the instructions are now incomplete with the changes to NET 8, or if something is broken. I'm happy to do further tests on either system if that would be helpful.
Thanks!
The text was updated successfully, but these errors were encountered: