getsentry / sentry-xamarin

Sentry for Xamarin Native and Xamarin.Forms
https://docs.sentry.io/platforms/dotnet/guides/xamarin/
44 stars 11 forks source link

XALNK7000: Mono.Linker.MarkException Sentry.SentryXamarinOptionsExtensions::RegisterXamarinEventProcessors #150

Closed michaelmairegger closed 6 months ago

michaelmairegger commented 6 months ago

Environment

Package Version
Sentry 4.4.0
Sentry.Xamarin.Forms 2.0.0

Steps to Reproduce

Have Sentry 4.4.0 and Sentry.Xamarin 2.0.0.

Build Xamarin Android project in Release mode

Expected Result

Build succeed

Actual Result

Package Version Build Error
Sentry >4.3.0 Error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Void Sentry.SentryXamarinOptionsExtensions::RegisterXamarinEventProcessors(Sentry.SentryXamarinOptions)'
Sentry 4.2.1 None
bitsandfoxes commented 6 months ago

Hey @michaelmairegger, sorry to see you run into this. This looks like an unintended sideeffect of the change to the extension in https://github.com/getsentry/sentry-dotnet/pull/3195 We're going to fix this.

michaelmairegger commented 6 months ago

@bitsandfoxes with 2.1.0 it seems the issue is resolved