Skip to content

Remove A/W probing for PInvokes on non-Windows platforms #33246

@akoeplinger

Description

@akoeplinger

Currently both Mono and CoreCLR have logic to probe for functions ending in W (Unicode) or A (Ansi) when resolving P/Invoke targets.

This doesn't really make sense on non-Windows platforms where such a convention doesn't exist.

From discussion with @jkotas:

CoreCLR does the W/A probing today even on non-Windows. I do not think it makes any sense. I would be ok with doing a breaking change for CoreCLR to remove this probing on non-Windows to make more sensible cross-plat behavior.

/cc @lambdageek @CoffeeFlux

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Interop-coreclrbreaking-changeIssue or PR that represents a breaking API or functional change over a prerelease.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions