Skip to content

System.PlatformNotSupportedException thrown in DisposeAtProcessTermination with Android #2739

Closed

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

Activity

  1. timcassell commented on May 27, 2025

    @timcassell
    Collaborator

    Accepting PRs.

  2. changed the title [-]System.PlatformNotSupportedException thrown in DisposeAtProcessTermination[/-] [+]System.PlatformNotSupportedException thrown in DisposeAtProcessTermination with Android[/+] on May 27, 2025
  3. added a commit that references this issue on May 27, 2025
    6adc977
  4. added a commit that references this issue on May 27, 2025
    48f2401
  5. added a commit that references this issue on May 28, 2025
    8bf4623
  6. added this to the v0.15.1 milestone on May 28, 2025
  7. ghost added a commit that references this issue on Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions