Table of Contents

Blazor Server Sample

Simple Blazor server application running inside FR22.

Application is packaged with net6.0 self-contained linux-arm runtime.

Usage

Application package must be installed through FR22 webui application interface.

Use from PC browser

Connect your browser to http://<reader_address>:5555

Use with FR22 browser (using device HDMI output)

  1. Install FR22 chromium from FR22 app center
  2. Go to FR22 webui browser settings (Display -> Browser)
  3. Change 'Start page' in chromium settings to http://localhost:5555
  4. In case no display connected to FR22 HDMI output, you can install 'Web VNC' from FR22 app center and open remote desktop to FR22 display (Remote Tools -> Remote Desktop).

Generating FR22 application package

Visual Studio 2022

  1. Open solution with Visual Studio 2022
  2. Right mouse click project name in solution explorer and select 'publish'
  3. Click publish button and BlazorSample_1.0.0-app.zip is generated in solution folder

dotnet command line

dotnet publish -r linux-arm --sc -c Release_FR22 -o "FR22PublishOutput" -p:PublishProfile=FR22_App

After package is generated 'FR22PublishOutput' folder can be removed.

Publish integration

See GenerateFr22Zip at the end of the project file: <Target Condition="'$(Configuration)' == 'Release_FR22'" Name="GenerateFr22Zip" AfterTargets="Publish">

This will execute fr22_vs_appziptool\build.ps1 powershell script after publish is made for 'Release_FR22' target.