BugSplatDotNetStandard 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BugSplatDotNetStandard --version 2.0.0                
NuGet\Install-Package BugSplatDotNetStandard -Version 2.0.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="BugSplatDotNetStandard" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BugSplatDotNetStandard --version 2.0.0                
#r "nuget: BugSplatDotNetStandard, 2.0.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 BugSplatDotNetStandard as a Cake Addin
#addin nuget:?package=BugSplatDotNetStandard&version=2.0.0

// Install BugSplatDotNetStandard as a Cake Tool
#tool nuget:?package=BugSplatDotNetStandard&version=2.0.0                

alt text

Introduction

BugSplatDotNetStandard allows you to capture and track exceptions on all platforms that support .NET Standard 2.0. This includes, .NET Core, Univeral Windows Platform, Mono and more! Before continuing with the tutorial please make sure you have completed the following checklist:

You can also view the MyUwpCrasher repo which contains a sample application with BugSplatDotNetStandard installed and configured to post crashes to BugSplat.

Configuration

After you've installed the BugSplatDotNetStandard NuGet package, add a using statement for the BugSplatDotNetStandard namespace.

using BugSplatDotNetStandard;

Create a new instance of BugSplat providing it your application's name, version and the corresponding BugSplat database. It's best to do this at the entry point of your application:

var bugSplat = new BugSplat(appName, appVersion, database);

Add a new listener to your application's UnhandledException event. In the event listener, add a call to BugSplat's Post method, making sure to pass in the exception that was unhandled. It is recommended that you close your application after an UnhandledException. In the following example from our MyUwpCrasher sample, we mark the exception as handled so that we can await the call to Post and shutdown the application immediately after:

this.UnhandledException += async (sender, args) =>
{
    args.Handled = true;
    await bugSplat.Post(args.Exception);
    CoreApplication.Exit();
};

You can also configure BugSplat to upload log files at crash time. You can add as many files as you'd like, but the upload size limit is 2 MB for standard customers and 10 MB for Enterprise customers:

bugSplat.AttachFile(new FileInfo("/path/to/file.txt"));

Testing the Integration

To test the integration, throw a new Exception outside of a try catch block:

throw new Exception("BugSplat rocks!");

You can also use BugSplat to manually post errors from a catch block:

try
{
    throw new Exception("BugSplat rocks!");
}
catch (Exception ex) 
{
    await bugSplat.Post(ex);
}

Once you've generated an error, navigate to the BugSplat Dashboard and ensure you have to correct database selected in the dropdown menu. You should see a new crash report under the 'Recent Crashes' section:

alt text

Click the link in the ID column to see details about the crash:

alt text

That’s it! Your application is now configured to post crash reports to BugSplat.

If you have any additional questions, feel free to email support or reach out via the chat in our web application.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

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
4.2.1 400 10/3/2024
4.2.0 255 10/1/2024
4.1.0 251 9/20/2024
4.0.3 254 9/16/2024
4.0.2 1,476 3/6/2024
4.0.1 760 2/29/2024
4.0.0 807 2/13/2024
3.2.1 3,011 3/2/2023
3.2.0 2,027 1/21/2023
3.1.1 1,989 11/29/2022
3.1.0 2,258 9/8/2022
3.0.1 3,290 5/11/2022
3.0.0 2,184 5/11/2022
2.1.3 2,715 1/12/2022
2.1.2 5,256 11/25/2021
2.1.1 4,767 11/25/2021
2.1.0 4,742 11/25/2021
2.0.7 2,391 10/14/2021
2.0.6 2,626 5/6/2021
2.0.5 2,306 5/5/2021
2.0.4 2,329 5/4/2021
2.0.3 2,411 5/1/2021
2.0.2 2,272 4/29/2021
2.0.1 2,306 4/29/2021
2.0.0 2,301 4/29/2021
1.0.1 3,245 4/4/2019
1.0.0 2,548 4/3/2019

Added support for uploading minidumps. Updated the public API surface to support various options.