Skip to content

FSharp.Compiler.Service for NetStandard 2 uses AssemblyLoadContext that is NetCore #8721

@amieres

Description

@amieres

This seems incorrect to me:

#if NETSTANDARD
    let handler = Func<AssemblyLoadContext, AssemblyName, Assembly>(resolveAssemblyNetStandard)
    do AssemblyLoadContext.Default.add_Resolving(handler)

According to the documentation AssemblyLoadContext is NetCore but not NetStandard.

This causes issues when targeting Mono-Wasm which is NetStandard 2.0 but does not implement AssemblyLoadContext.

AppDomain is part of NetStandard 2.0 & 2.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions