Raygun.Blazor.Maui
1.0.0
See the version list below for details.
dotnet add package Raygun.Blazor.Maui --version 1.0.0
NuGet\Install-Package Raygun.Blazor.Maui -Version 1.0.0
<PackageReference Include="Raygun.Blazor.Maui" Version="1.0.0" />
paket add Raygun.Blazor.Maui --version 1.0.0
#r "nuget: Raygun.Blazor.Maui, 1.0.0"
// Install Raygun.Blazor.Maui as a Cake Addin #addin nuget:?package=Raygun.Blazor.Maui&version=1.0.0 // Install Raygun.Blazor.Maui as a Cake Tool #tool nuget:?package=Raygun.Blazor.Maui&version=1.0.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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net8.0-ios17.5 is compatible. net8.0-maccatalyst17.5 is compatible. net8.0-windows10.0.19041 is compatible. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
- Raygun.Blazor (>= 1.0.0)
-
net8.0-ios17.5
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
- Raygun.Blazor (>= 1.0.0)
-
net8.0-maccatalyst17.5
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
- Raygun.Blazor (>= 1.0.0)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
- Raygun.Blazor (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.