Raygun.Blazor.Maui 1.1.0

dotnet add package Raygun.Blazor.Maui --version 1.1.0                
NuGet\Install-Package Raygun.Blazor.Maui -Version 1.1.0                
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.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Raygun.Blazor.Maui --version 1.1.0                
#r "nuget: Raygun.Blazor.Maui, 1.1.0"                
#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.
// Install Raygun.Blazor.Maui as a Cake Addin
#addin nuget:?package=Raygun.Blazor.Maui&version=1.1.0

// Install Raygun.Blazor.Maui as a Cake Tool
#tool nuget:?package=Raygun.Blazor.Maui&version=1.1.0                

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.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst18.0 is compatible.  net8.0-windows10.0.19041 is compatible. 
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.1.0 45 11/21/2024
1.0.0 95 9/27/2024