I'm trying to add AppCenter Analytics and Crash reporting to my .NET MAUI app targeting .NET 8 -- using the latest versin of Visual Studio 17.8.0 and the version of .NET 8 installed on my machine is 8.0.100
.
I add Microsoft.AppCenter.Analytics
and Microsoft.AppCenter.Crashes
packages, both version 5.0.3
. They also add Microsoft.AppCenter
as a dependency.
I then add the following in MauiProgram.cs
right before return builder. Build();
line:
AppCenter.Configure("ios=my-secret-for-ios-from-appcenter-portal;android=my-secret-for-android-from-appcenter-portal");
if (AppCenter.Configured)
{
AppCenter.Start(typeof(Analytics));
AppCenter.Start(typeof(Crashes));
}
I can build the app but as soon as I start the app, it crashes on my iPhone connected to my laptop via USB.
After installing the NuGet packages, I did remove bin
and obj
folders. Cleaned the solution and rebuilt it. I then run it on an iPhone connected to my Windows machine via USB and it instantly crashes.
I was able to play with AppCenter on a .NET MAUI app before. Is anyone else experiencing any issues on a .NET MAUI app targeting .NET 8?