Skip to content

Using Microsoft.Win32.Registry on a .NET Standard extension #27033

Description

@jp2masa

Related to #23762, but I think it isn't clear enough.

Scenario

There are both a .NET Framework and .NET Core applications which are extensible, and provide the extensibility APIs as one or more .NET Standard assemblies. One of the extensions, which targets .NET Standard, uses Microsoft.Win32.Registry, which is expected to work, but it fails on the .NET Framework application with PlatformNotSupportedException, as the facade didn't ship with the extension.

Is this scenario unsupported? If so, is there a workaround? I think that this totally breaks the purpose of .NET Standard, by forcing the extension to know the target runtimes when building.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions