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
- Add android-arm64 and android-x64 test cases to PublishNativeAOT and
PublishNativeAOTRootAllMauiAssemblies tests
- Add PrepareNativeAotBuildPropsAndroid() with Android-specific build
properties including ANDROID_NDK_ROOT support
- Add ExpectedNativeAOTWarningsAndroid baseline (XA1040 + IL3050
warnings)
- Use OnlyAndroid() helper on Linux to avoid iOS/macCatalyst workload
issues
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@@ -54,6 +81,7 @@ public void PublishNativeAOTRootAllMauiAssemblies(string id, string framework, s
54
81
// This test follows the following guide: https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/#publishing-a-test-application-for-aot
"The NativeAOT runtime on Android is an experimental feature and not yet suitable for production use. File issues at: https://github.com/dotnet/android/issues",
189
+
}
190
+
},
191
+
}
192
+
},
193
+
newWarningsPerFile
194
+
{
195
+
File="ILC",
196
+
WarningsPerCode=newList<WarningsPerCode>
197
+
{
198
+
newWarningsPerCode
199
+
{
200
+
Code="IL3050",
201
+
Messages=newList<string>
202
+
{
203
+
"Microsoft.Android.Runtime.ManagedTypeManager.<GetInvokerTypeCore>g__MakeGenericType|4_1(Type,Type[]): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.",
204
+
"Android.Runtime.JNIEnv.MakeArrayType(Type): Using member 'System.Type.MakeArrayType()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available.",
205
+
"Android.Runtime.JNINativeWrapper.CreateDelegate(Delegate): Using member 'System.Reflection.Emit.DynamicMethod.DynamicMethod(String,Type,Type[],Type,Boolean)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating a DynamicMethod requires dynamic code.",
206
+
"Java.Interop.JavaConvert.<GetJniHandleConverter>g__MakeGenericType|2_0(Type,Type[]): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.",
0 commit comments