Closed JasonWei512 closed 1 year ago
Hello @JasonWei512, sorry for the late answer, We've filed an item on our internal board for this request. Will update this thread once got results.
@AnatolyPristensky Any updates on this problem? What did the "internal board" decide?
As we do not have plans to add support for this feature in the next year, I'm closing the issue.
Description
If I enable .NET IL trimming in a WinUI 3 project, App Center SDK stops working. It cannot send any data to the server.
Repro Steps
SampleProject.zip
Create an empty .NET 7 WinUI 3 project.
Install App Center nuget packages and enable it in
App.xaml.cs
.Run the app, and I can see
STARTSESSION
in Log Flow on App Center's website.When the app tracks an event, I can also see it in Log Flow.
In Fiddler I can see my app sending network requests to
https://appcenter.ms/api
.Enable .NET IL trimming. Add these lines in
.csproj
file.Now when my app runs, I can't see anything in Log Flow.
When the app tracks an event, I can see
"System.MissingMethodException" in "System.Private.CoreLib.dll"
in Visual Studio's debugger output.In Fiddler I can't see any network request to App Center server.
I guess this is related to json serialization.
Details
What is your app platform (Xamarin.Android or Xamarin.iOS or UWP)?
If using Xamarin.Forms or if using portable/shared code to call our SDK APIs, are you using shared project, PCL code or .NET standard code for the application? Which .NET standard version or which PCL profile?
Which SDK version are you using?
Which OS version did you experience the issue on?
What device version did you see this error on? Were you using an emulator or a physical device?
What third party libraries are you using?
Please enable verbose logging for your app using
AppCenter.LogLevel = LogLevel.Verbose
before your call toAppCenter.Start(...)
and include the logs here:Miscellaneous
Related issues: