DavidAJohn / PhotoPortfolio

Personal photo portfolio .NET web application which implements a Blazor and Tailwind CSS user interface with a MongoDb database, and includes integration with Stripe Checkout and Prodigi Print API
0 stars 1 forks source link

Update to .NET 7 #27

Closed DavidAJohn closed 1 year ago

DavidAJohn commented 1 year ago

None of the projects target .NET 7 at the moment. I have a feeling I had left this because of a potential incompatibility with either MudBlazor or the Blazored Modal library.

Time to check if that concern is still relevant and update each project if possible.

DavidAJohn commented 1 year ago

The static version of the application targets .NET 7 and has MudBlazor and Blazored Modal packages installed and runs without any issues.

I think the problem was MudBlazor, because I'd deliberately kept Blazored Modal at v6.0.x in both applications because of some breaking changes in v7.

Looking at the Nuget packages, it seems that the version of MudBlazor currently installed is 6.0.18, which wasn't compatible with .NET 7 at the time, but subsequent versions (v6.1.0 and up) are fine.

The latest version of MudBlazor as of today is v6.2.5. The static application is using v6.2.3.

So, just update Mudblazor to the latest version (at least v6.1.0), then the .NET 7 update should be simple.

DavidAJohn commented 1 year ago

While updating MudBlazor, I've found some kind of breaking change (v6.2.x >) with either their Switch or their Tooltip form components, which ruins the layout of the admin galleries page.

I've left it at v6.1.0 - which seems fine - until I get a chance to come back to it.