Skip to content

Commit

Permalink
[tests] Preserve a required method in System.Private.CoreLib to work …
Browse files Browse the repository at this point in the history
…around a bug in .NET 6. (xamarin#10426)

Ref: dotnet/runtime#46908.
  • Loading branch information
rolfbjarne authored Jan 15, 2021
1 parent 24331f3 commit 29727d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/monotouch-test/dotnet/extra-linker-defs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<linker>
<assembly fullname="System.Private.CoreLib">
<type fullname="System.Runtime.Loader.AssemblyLoadContext">
<!-- https://github.com/dotnet/runtime/issues/46908 -->
<!-- native-library.c: netcore_resolve_with_resolving_event () -->
<method name="MonoResolveUnmanagedDllUsingEvent" />
</type>
</assembly>
</linker>
1 change: 1 addition & 0 deletions tests/monotouch-test/dotnet/iOS/monotouch-test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<DefineConstants Condition="'$(Platform)' == 'iPhoneSimulator'">$(DefineConstants);DYNAMIC_REGISTRAR</DefineConstants>
<DefineConstants Condition="'$(Platform)' != 'iPhoneSimulator'">$(DefineConstants);DEVICE</DefineConstants>
<RootTestsDirectory>..\..\..</RootTestsDirectory>
<MtouchExtraArgs>-xml=${ProjectDir}/../extra-linker-defs.xml</MtouchExtraArgs>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 29727d6

Please sign in to comment.