Hosting both Blazor Server and WebAssembly in single website
Blazor framework supports 2 types of hosting and running of Blazor application. Blazor Server runs application on server inside ASP.NET Core application and only exchanges HTML fragments and events with client. And Blazor WebAssembly runs application completely inside web browser and in some cases does not need server at all. What if you want to use both models in the same application and run different type based on client device type.
Configure Blazor app from server
Microsoft recently release Blazor WebAssembly 3.2.0 Release Candidate. This version includes configuration of an application by appsettings.json configuration file.
Create certificate for automated build of UWP app
Visual Studio 2019 improved build of UWP applications for Windows 10. Good news is that it is possible to build the project without need for temporary certificate. This is useful for automated builds validating pull requests. When validating pull-request, I simply build the project without creating APPX package. In Visual Studio 2017 this used to fail because of missing certificate to sign the package. So I had to create a self-signed certificate. However, in Visual Studio 2019 no APPX package signing is done by default, and thus no certificate is needed.
Blazor and .NET Core 3.1.1
Few days ago updated version of .NET Core 3.1.1 was released. It includes several security fixes, so it is strongly recommend to upgrade. However, after installation I was not able to build Blazor projects with client-side Blazor. Build failed with error:
Azure Functions and static website (part 2)
In previous post I explained how I developed an Azure Function to send email using SendGrid service. Today I explain how to deploy the Azure Function and how to use it from Wyam generated website.
Azure Functions and static website (part 1)
This is 4th post in the series about my experience with Wyam. This post will explain how to add some dynamic functionality to static website using Azure Functions. While writing this blog post I realized that it's too long, so I decided to split it to 2 parts. And the first part is focused on implementation of Azure Function.
Continuous Deployment of Wyam generated site
This is 3rd post in my series about experience with Wyam. This post is about setting up continuous deployment of static web site generated by Wyam. I am using Azure DevOps for deployment.
Combine pages in Wyam
In previous post Website refactoring using Wyam I wrote about how I created my website using Wyam. I focused on configuration and Markdown content. This time I write about Razor pages in Wyam. Specifically how I created Projects page.
Website refactoring using Wyam
Until now I had personal website implemented using Orchard CMS. It was almost unchanged for several years. Sometimes I was thinking about upgrading the Orchard engine, but there was always something with higher priority. When I heard about Orchard Core running on ASP.NET Core, I told myself that it's really time to do some upgrade. However, I realized that almost all content of the website is static and maybe better solution would be to use a static site generator. Then I found project Wyam by Dave Glick. Wyam is flexible and extensible static site generator implemented in .NET Core.