Skip to content

System.TypeLoadException: Method 'PromptForCredential' does not have an implementation. #13346

@rjmholt

Description

@rjmholt

#12782 introduced a new abstract member on PSHostUserInterface. This makes it impossible to implement PSHostUserInterface for both PS 7.1 and any earlier PowerShell version. Instead we get a TypeLoadException.

An explanation of this is here: #12782 (comment)

You can find the Host UI implementation (which works today with PS 7.0 and PS 5.1) here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productWG-DevEx-SDKhosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions