Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static styles.css issues after renaming Blazor project

Tags:

blazor

If I start a Blazor server from scratch. Then right-click the project and click rename.

All the namespaces change(EditedProjectName.Pages) but the using statements keep the old references(OriginalProjectName.Pages).

This is fairly easy to overcome with Find and replace OriginalProjectName.Pages => replace with => EditedProjectName.Pages

Now the issue. Seemly randomly the site launches without proper css. The same output as I get if I comment out the static CSS in {PROJECT NAME}.styles.css which makes the sidebar etc disappear incorrect blazor index page view

Any idea of how the project name change can cause this issue and how I can solve or troubleshoot it?

like image 446
WorldNeedsRefactoring Avatar asked Jun 05 '26 23:06

WorldNeedsRefactoring


1 Answers

The issue disappeared when I did a Build|Clean and a Build|Rebuild.

like image 190
WorldNeedsRefactoring Avatar answered Jun 07 '26 14:06

WorldNeedsRefactoring



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!