You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm experiencing some issues with trimming on iOS and Android using toolkit 200.3.0.
ILLink : error IL2036: Esri.ArcGISRuntime.Toolkit.Maui.Primitives.AttachmentsPopupElementView.BuildDefaultItemTemplate(): Unresolved type 'Esri.ArcGISRuntime.Toolkit.Maui.Primitives.AttachmentViewModel' in 'DynamicDependencyAttribute'.
ILLink : error IL2037: Esri.ArcGISRuntime.Toolkit.Maui.OverviewMap..cctor(): No members were resolved for 'LoadStatus' on type 'Esri.ArcGISRuntime.Mapping.Map'.
Good find! You're right the full type name is incorrect for AttachmentViewModel.
The other one I think it just need to change from Map.LoadStatus to GeoModel.LoadStatus
Having said that, trimming in .NET MAUI is still pretty limited and causing a lot of issues beyond the .NET SDKs's own libraries - even .NET MAUI has lots of issues and are still working through it. Generally I'd recommend turning trimming off for Esri.ArcGISRuntime since especially bindings are causing a lot of issues since MAUI can't properly analyze and preserve properties you're binding to. If you want to keep trimming on for our libraries, expect doing a lot of these DynamicDependency attributes for things you bind to but don't access directly in code-behind, and as this issue shows, it can be pretty error-prone.
Hi, I'm experiencing some issues with trimming on iOS and Android using toolkit
200.3.0
.Temporary fix
Investigation
arcgis-maps-sdk-dotnet-toolkit/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Maui.cs
Lines 76 to 80 in 8117823
AttachmentViewModel
is a private class nested insideAttachmentsPopupElementView
. I guess the full type name is incorrect.arcgis-maps-sdk-dotnet-toolkit/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Maui.cs
Lines 189 to 194 in 8117823
I haven't investigated the second error..
The text was updated successfully, but these errors were encountered: