Skip to content

Assembly.ReflectionOnlyLoad should throw PNSE #7273

@jkotas

Description

@jkotas

Reflection-only loads are not supported in CoreCLR. (FEATURE_REFLECTION_ONLY_LOAD)

Assembly.ReflectionOnlyLoad are doing full loads instead of reflection-only loads. They should throw PNSE instead.

The matching corefx tests should be updated: https://github.com/dotnet/corefx/blob/f9efc9625f795673c5c17d0791d8c79710a267b9/src/System.Runtime/tests/System/Reflection/AssemblyTests.cs#L161

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions