getsentry / sentry-xamarin

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

Sentry.Xamarin 1.4.2 gives error when compiling against net6.0-android project #126

Closed kmiterror closed 1 year ago

kmiterror commented 1 year ago

Environment

Visual Studio for Mac 17.3 M1 CPU macOS Monterey

Steps to Reproduce

  1. Bump sentry.xamarin to version 1.4.2
  2. compile

Expected Result

project should compile

Actual Result

During compilation it finishes with 182 instances of errors like below: obj/Debug/net6.0-android31.0/Resource.designer.cs(4,4): Error CS0433: The type 'Resource' exists in both 'Sentry.Xamarin, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null' and 'Sentry, Version=3.20.1.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0' (CS0433)

After downgrading to 1.4.1 it works properly

lucas-zimerman commented 1 year ago

Hi kmiterror. This package will not support .NET 6 Android/iOS, the support was added to the main Package and the MAUI package (https://github.com/getsentry/sentry-dotnet) so I'd recommend migrating to the Sentry Maui SDK

lucas-zimerman commented 1 year ago

Closing as we are not going to addsupport to .NET 6 on this SDK but on the main SDK.