---
title: "Exception Perceptions: Turning C# into a 5-Star Mobile App with Xamarin"
description: "On the newest episode of Exception Perceptions, Xamarin + Azure Cloud Developer Advocate Brandon Minnick talks about using  C# and .NET skills to build fully native Android, iOS, and UWP apps."
url: "https://blog.sentry.io/sentry-exception-perceptions-csharp-xamarin/"
canonical_url: "https://blog.sentry.io/sentry-exception-perceptions-csharp-xamarin/"
authors: ["Chloe Condon"]
published: "2018-08-27"
category: "Product Updates"
---

# Exception Perceptions: Turning C# into a 5-Star Mobile App with Xamarin

[Vimeo video 286255111](https://player.vimeo.com/video/286255111?transparent=0&dnt=1)

* * *

_On this episode of **Exception Perceptions**, Xamarin + Azure Cloud Developer Advocate _[_Brandon Minnick_](https://twitter.com/TheCodeTraveler)_ stopped by to chat with Sentry’s Developer Evangelist(a) Chloe Condon about _[_Visual Studio Tools for Xamarin_](https://visualstudio.microsoft.com/xamarin/?WT.mc_id=none-SentryBlog-bramin)_ the mobile development platform that lets developers use their C# and .NET skills to build fully native Android, iOS, and UWP apps._

_Watch the episode, and read what Brandon has to say about building 5-star apps — and how _**you**_ can start shipping better apps with Xamarin and Sentry._  

I, like many of us, rely on my apps and I need them to work. Full stop. I don’t have time to deal with crashing, freezing, or loading screens. So if an app doesn’t work, I quickly uninstall it, search the app stores, and download an alternative. And, I’m not an outlier:

-   The average user [force-quits an app](https://developer.akamai.com/blog/2016/09/14/mobile-load-time-user-abandonment) if it freezes for longer than 3-seconds.
-   23% of users [abandon an app](http://info.localytics.com/blog/23-of-users-abandon-an-app-after-one-use) after one use.

I’m also a mobile app developer ([insert shameless plug for my app](https://mondaypunday.com/app)), and I recognize the importance of user experience. I need to ensure the best possible experience for my users to make sure they not only come back, or even better, tell their friends about it.

“Is my app crashing?” is one of the — if not the — most important things to know, since it has drastic impacts on if users get a 5-star experience (or not). Luckily, [Sentry has a solution](https://sentry.io/platforms/).

## Crash Reporting for Mobile

Sentry provides support and [mobile error monitoring](https://sentry.io/solutions/mobile-developers/) for every major mobile app platform: [ObjC/Swift](https://sentry.io/for/cocoa/), [Java](https://sentry.io/for/android/), [React Native](https://sentry.io/for/javascript/), and [Xamarin](https://sentry.io/for/dot-net/), and it’s as easy as installing a [Cocapod](https://docs.sentry.io/platforms/apple/#installation), [Gradle Plugin](https://docs.sentry.io/platforms/android/), [NPM Package](https://github.com/getsentry/sentry-javascript#installation-and-usage), or [NuGet Package](https://docs.sentry.io/platforms/dotnet/legacy-sdk/) and writing one-line of code. That’s it!

With the Sentry SDK, I’ll get immediate notifications if my app crashes on a user’s device and see the complete stack trace, so I know exactly which line of code to investigate fix.

## Xamarin + Sentry

Using a combination of Sentry and two Xamarin libraries ([Xamarin.Forms](https://docs.microsoft.com/xamarin/xamarin-forms/?WT.mc_id=none-SentryBlog-bramin) and [Xamarin.Essentials](https://docs.microsoft.com/xamarin/essentials/?WT.mc_id=none-SentryBlog-bramin)), I constructed a [Xamarin app](https://github.com/brminnick/XamarinSentryApp) with [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/?WT.mc_id=none-SentryBlog-bramin) in just a few minutes.

**The coolest part?** Sentry understands that Xamarin runs on Mono and provides my C# code in the stack trace, along with the native ObjC/Java stack trace.

![Sentry Xamarin Crash](https://blog.sentry.io/_vercel/image?url=_astro%2Finline-0.DjCbagwp.png&w=1200&q=100)
