AvaloniaUI Sample
Embracing AvaloniaUISample: A Dotnet UI Application in FR22 Environment
The AvaloniaUISample stands as a testament to the fusion of a dotnet UI application employing AvaloniaUI within the dynamic environment of FR22. This application is bundled with a net6.0 self-contained Linux-arm runtime, offering versatility and compatibility within the FR22 ecosystem.
Unveiling the Features
- AvaloniaUI Integration: Leveraging the power of AvaloniaUI, a robust cross-platform UI framework, for crafting the user interface.
- Linux-arm Self-Contained Runtime: Packaged with a net6.0 runtime specifically tailored for Linux-arm architectures, ensuring self-containment and optimal performance.
- FR22 Integration: Developed to seamlessly operate within the FR22 environment, potentially utilizing FR22-specific features or optimizations.
Application Deployment and Usage
- Installation via FR22 WebUI: The application package must be installed through the FR22 WebUI application interface.
- HDMI Output Display: When running, the application appears on the FR22 HDMI output, providing direct visual access.
- Remote Display Access: In the absence of a connected display, installing 'Web VNC' from the FR22 app center allows access to the FR22 display via Remote Desktop in 'Remote Tools.'
Generating FR22 Application Package
Visual Studio 2022:
- Open the solution in Visual Studio 2022.
- Right-click the project name in the solution explorer and select 'publish.'
- Click the publish button to generate 'AvaloniaUISample_1.0.1-app.zip' in the solution folder.
Dotnet Command Line:
Execute the following command:
dotnet publish -r linux-arm --sc -c Release_FR22 -o "FR22PublishOutput" -p:PublishProfile=FR22_App
Once the package is generated, the 'FR22PublishOutput' folder can be removed for cleanliness.
Publish Integration
The project file contains the GenerateFr22Zip target, triggered by the Publish event under the 'Release_FR22' configuration:
<Target Condition="'$(Configuration)' == 'Release_FR22'" Name="GenerateFr22Zip" AfterTargets="Publish">
<!-- Execute fr22_vs_appziptool\build.ps1 script post-publish -->
</Target>
This executes the PowerShell script fr22_vs_appziptool\build.ps1 after the 'Publish' operation, ensuring seamless integration for FR22 packaging.
Conclusion
The AvaloniaUISample exemplifies a seamless fusion of modern UI development utilizing AvaloniaUI, seamlessly integrated into the FR22 environment. Its adaptability, cross-compatibility, and unified functionality establish it as an exceptional choice for developers venturing into dotnet-based UI applications within FR22.