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
Assert.Ignore("NativeAOT does not support marshal methods");
2168
+
break;
2169
+
2170
+
// TODO: CoreCLR currently breaks with
2171
+
// System.NotSupportedException: Writing mixed-mode assemblies is not supported
2172
+
// at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
2173
+
// at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
2174
+
// at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
2175
+
// at Mono.Cecil.AssemblyDefinition.Write(String fileName, WriterParameters parameters)
2176
+
// at Xamarin.Android.Tasks.MonoAndroidRuntimeMarshalMethodsFixUp.ApplyFixUp(TaskLoggingHelper log, ITaskItem monoAndroidRuntime) in src/Xamarin.Android.Build.Tasks/Utilities/MonoAndroidRuntimeMarshalMethodsFixUp.cs:line 59
2177
+
// at Xamarin.Android.Tasks.MonoAndroidRuntimeMarshalMethodsFixUp.Run(TaskLoggingHelper log, List`1 items) in src/Xamarin.Android.Build.Tasks/Utilities/MonoAndroidRuntimeMarshalMethodsFixUp.cs:line 18
2178
+
// at Xamarin.Android.Tasks.FixUpMonoAndroidRuntime.RunTask() in src/Xamarin.Android.Build.Tasks/Tasks/FixUpMonoAndroidRuntime.cs:line 35
2179
+
// at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs
2180
+
caseAndroidRuntime.CoreCLR:
2181
+
Assert.Ignore("CoreCLR currently doesn't work due to a bug in Mono.Cecil");
2182
+
break;
2183
+
}
2184
+
2185
+
varproj=newXamarinAndroidApplicationProject{
2186
+
IsRelease=isRelease,
2187
+
EnableMarshalMethods=true,
2188
+
};
2189
+
proj.SetRuntime(runtime);
2190
+
usingvarbuilder=CreateApkBuilder();
2191
+
Assert.IsTrue(builder.Build(proj),"Build should have succeeded.");
0 commit comments