enkodellc / blazorboilerplate

Blazor Boilerplate / Starter Template with MudBlazor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET 7 migration

AlexK555 opened this issue · comments

Is it planned to migrate it to the lates .NET version?

commented

Yes of course. Been busy and also normally wait a bit for dependencies to update as well as previously it has been an issue.

commented

I have migrated the code to .net7. I can build and run locally fine and it builds fine in Azure Pipelines but I am running into errors when I try to deploy to IIS

The type initializer for 'IdentityServer4.EntityFramework.Mappers.ScopeMappers' threw an exception.

Looks like still issues with Automapper and IS4 / .net7.

I tried both 10.1.1 and version 12.0.0 from Automapper. Both seem to fail with IS4. Might be time to get rid of IS4 but I don't have the time to replace it.

IdentityServer/IdentityServer4#5488

I'm unable to debug locally as I get the 'The type initializer for 'IdentityServer4.EntityFramework.Mappers.ScopeMappers' threw an exception.' error as well.

I'm having issues running the maui branch. The server project fails to run and the Maui project runs but fails to connect when trying to login. Is there an additional Ste other than updating the appsettings connection string in the server project?

@wint100 it fails because you have to run both Maui and Server project at the same time

Interesting, which should be the startup up project?

Is there an order to start each for debugging?

Should I just use V3.4 on .NET6 now for a new project?

@wint100 if your aim is to test Maui app, you have to start server project first

'm still using .NET6 because when trying to debug the Maui build, I only get a white screen in the browser and the following error. Any idea what I could be missing here?

image

It is an issue with your browser, anyway close Visual Studio, run delObjBin.ps1 in the Utils/Script folder. Open Visual Studio, rebuild all and retry.

No joy unfortunately. I tried different browser as well