Csla blazor WebHost vs GenericHost #1959
-
I was just wondering looking at the sample in here It is using IWebHost as written by Microsoft https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host It feels better to me to update the sample to IHostBuilder |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are probably correct, though ultimately I have the samples conform to the Microsoft project/solution templates. What I've done with most of the Blazor apps (like the ones for my book) is to replace the project file(s) with ones created using the latest .NET 5 templates. For that particular sample I did a manual upgrade to see what was required. I am not 100% happy with the result, As a result, I do plan to update that solution to .NET 5, replacing the existing projects with brand new ones created using the .NET 5 templates. |
Beta Was this translation helpful? Give feedback.
You are probably correct, though ultimately I have the samples conform to the Microsoft project/solution templates.
What I've done with most of the Blazor apps (like the ones for my book) is to replace the project file(s) with ones created using the latest .NET 5 templates. For that particular sample I did a manual upgrade to see what was required. I am not 100% happy with the result,
As a result, I do plan to update that solution to .NET 5, replacing the existing projects with brand new ones created using the .NET 5 templates.