Skip to content

AssemblyLoadContext.LoadFromStream(Stream, Stream) is not implemented #7763

@MaxwellDAssistek

Description

@MaxwellDAssistek

Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)

Affected platform version

VS 2022

Description

Attempting to call LoadFromStream(Stream, Stream) raises a Not Implemented exception.

PR #5940 gave support for most AssemblyLoadContext functions, but it seems LoadFromStream including symbols was missed.

Steps to Reproduce

  1. Call AssemblyLoadContext.LoadFromStream(Stream, Stream)

Did you find any workaround?

A workaround seems to be to write out the dll and pdb data to a temporary file and load it from there using AssemblyLoadContext.LoadFromAssemblyPath, or use embedded debug symbols in the loaded DLL (only applicable if you have control over the DLL build).

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions