Raygun.Blazor.Maui 1.2.2

dotnet add package Raygun.Blazor.Maui --version 1.2.2
                    
NuGet\Install-Package Raygun.Blazor.Maui -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Raygun.Blazor.Maui" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Raygun.Blazor.Maui" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Raygun.Blazor.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Raygun.Blazor.Maui --version 1.2.2
                    
#r "nuget: Raygun.Blazor.Maui, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Raygun.Blazor.Maui&version=1.2.2
                    
Install Raygun.Blazor.Maui as a Cake Addin
#tool nuget:?package=Raygun.Blazor.Maui&version=1.2.2
                    
Install Raygun.Blazor.Maui as a Cake Tool

Raygun for MAUI Blazor Hybrid applications

Raygun provider for MAUI Blazor Hybrid applications.

Full usage instructions can be found in the Raygun.Blazor package page.

As .Net MAUI Blazor Hybrid applications are composed of both MAUI and Blazor, you will have to set up Raygun for MAUI and Raygun for Blazor separately.

Check the package Raygun4Maui for the MAUI setup instructions.

Installation

Install the packages Raygun.Blazor and Raygun.Blazor.Maui from NuGet.

Setup

Add a scoped RaygunBlazorClient by calling to UseRaygunBlazorMaui() with your MauiApp builder.

var builder = MauiApp.CreateBuilder();

builder
  .UseMauiApp<App>()
  // ... Other configuration
  .UseRaygunBlazorMaui();

Capturing unhandled exceptions

Use RaygunErrorBoundary to wrap components and capture unhandled exceptions automatically.

For example, in your Components/Layout/MainLayout.razor:

@using Raygun.Blazor.Maui

...

<article class="content px-4">
  <RaygunErrorBoundary>
    @Body
  </RaygunErrorBoundary>
</article>

Example

An example project is located in src/Raygun.Samples.Blazor.Maui

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net9.0-android was computed.  net10.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.2 191 4/17/2025
1.2.1 97 1/24/2025
1.1.0 123 11/21/2024
1.0.0 114 9/27/2024