Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add suppression in windows-only code
  • Loading branch information
sbomer committed Mar 2, 2022
commit d3a0ba883449392c100a12006a0a5e116faa0717
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public static unsafe void LoadInMemoryAssembly(IntPtr moduleHandle, IntPtr assem

// We don't cache the ALCs here since each IJW assembly will call this method at most once
// (the load process rewrites the stubs that call here to call the actual methods they're supposed to)
#pragma warning disable IL2026 // suppressed in ILLink.Suppressions.LibraryBuild.xml
AssemblyLoadContext context = new IsolatedComponentLoadContext(assemblyPathString);
#pragma warning restore IL2026
context.LoadFromInMemoryModule(moduleHandle);
#else
throw new PlatformNotSupportedException();
Expand Down