@@ -37,3 +37,49 @@ be shared between all targets, which then can (if needed) translate it to the ta
37
37
Runtime currently calls ` abort() ` in several places. This should probably become part of the host contract instead.
38
38
Being part of the contract, the target platform could implement process termination on ` abort() ` in a uniform way
39
39
(includes platform-specific logging, preparation etc)
40
+
41
+ ## Issues and workarounds
42
+
43
+ ### Trimmer issue (as of 14.02.2025)
44
+
45
+ It appears the trimmer removes a bit too much at this point. In order to make the application run with trimming, one
46
+ needs to add the following to their .csproj (solution found by Ivan Povazan):
47
+
48
+ ``` xml
49
+ <ItemGroup >
50
+ <TrimmerRootDescriptor Include =" MyRoots.xml" />
51
+ </ItemGroup >
52
+ ```
53
+
54
+ and put the following in the ` MyRoots.xml ` file:
55
+
56
+ ``` xml
57
+ <linker >
58
+ <assembly fullname =" Java.Interop" >
59
+ <type fullname =" Java.Interop.JavaArray`1" >
60
+ <method name =" get_IsReadOnly" />
61
+ <method name =" System.Collections.ICollection.get_Count" />
62
+ <method name =" System.Collections.ICollection.get_IsSynchronized" />
63
+ <method name =" System.Collections.ICollection.get_SyncRoot" />
64
+ <method name =" System.Collections.ICollection.CopyTo" />
65
+ <method name =" System.Collections.IEnumerable.GetEnumerator" />
66
+ <method name =" System.Collections.IList.get_IsFixedSize" />
67
+ <method name =" System.Collections.IList.get_Item" />
68
+ <method name =" System.Collections.IList.set_Item" />
69
+ <method name =" System.Collections.IList.Add" />
70
+ <method name =" System.Collections.IList.Contains" />
71
+ <method name =" System.Collections.IList.IndexOf" />
72
+ <method name =" System.Collections.IList.Insert" />
73
+ <method name =" System.Collections.IList.Remove" />
74
+ <method name =" System.Collections.IList.RemoveAt" />
75
+ <method name =" System.Collections.Generic.ICollection< T> .Add" />
76
+ <method name =" System.Collections.Generic.ICollection< T> .Remove" />
77
+ <method name =" System.Collections.Generic.IList< T> .Insert" />
78
+ <method name =" System.Collections.Generic.IList< T> .RemoveAt" />
79
+ </type >
80
+ <type fullname =" Java.Interop.JavaObjectArray`1" >
81
+ <method name =" Clear" />
82
+ </type >
83
+ </assembly >
84
+ </linker >
85
+ ```
0 commit comments