Skip to content

System.PlatformNotSupportedException thrown in DisposeAtProcessTermination with Android #2739

@BraedenLS

Description

@BraedenLS

The Console.CancelKeyPress event:

[UnsupportedOSPlatform("android")]
[UnsupportedOSPlatform("browser")]
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public static event ConsoleCancelEventHandler? CancelKeyPress;

is clearly not supported for all OS's. However, the DisposeAtProcessTermination abstract class is trying to subscribe to this event regardless.

My project targets and runs on android and very quickly runs into this exception

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions